Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
#include <TypedResult.h>
Inherits qpid::client::Completion.
Public Member Functions | |
TypedResult (Future f, shared_ptr< SessionImpl > s) | |
T & | get () |
Wait for the asynchronous command that returned this TypedResult to complete and return its result. | |
void | wait () |
Wait for the asynchronous command that returned this Completion to complete. | |
bool | isComplete () |
Protected Attributes | |
Future | future |
shared_ptr< SessionImpl > | session |
You can use get() to wait for completion and get the result value.
Definition at line 35 of file TypedResult.h.
qpid::client::TypedResult< T >::TypedResult | ( | Future | f, | |
shared_ptr< SessionImpl > | s | |||
) | [inline] |
Definition at line 42 of file TypedResult.h.
T& qpid::client::TypedResult< T >::get | ( | ) | [inline] |
Wait for the asynchronous command that returned this TypedResult to complete and return its result.
If | the command returns an error, get() throws an exception. |
Definition at line 52 of file TypedResult.h.
References qpid::client::Future::decodeResult(), qpid::client::Completion::future, and qpid::client::Completion::session.
bool qpid::client::Completion::isComplete | ( | ) | [inline, inherited] |
Definition at line 64 of file Completion.h.
References qpid::client::Completion::future, qpid::client::Future::isComplete(), and qpid::client::Completion::session.
void qpid::client::Completion::wait | ( | ) | [inline, inherited] |
Wait for the asynchronous command that returned this Completion to complete.
If | the command returns an error, get() throws an exception. |
Definition at line 59 of file Completion.h.
References qpid::client::Completion::future, qpid::client::Completion::session, and qpid::client::Future::wait().
Future qpid::client::Completion::future [protected, inherited] |
Definition at line 44 of file Completion.h.
Referenced by qpid::client::TypedResult< T >::get(), qpid::client::Completion::isComplete(), and qpid::client::Completion::wait().
shared_ptr<SessionImpl> qpid::client::Completion::session [protected, inherited] |
Definition at line 45 of file Completion.h.
Referenced by qpid::client::TypedResult< T >::get(), qpid::client::Completion::isComplete(), and qpid::client::Completion::wait().