| Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
Returned by asynchronous commands that return a result. More...
#include <qpid/client/TypedResult.h>
Public Member Functions | |
| TypedResult (const Completion &c) | |
| T & | get () |
| Wait for the asynchronous command that returned this TypedResult to complete and return its result. More... | |
| void | wait () |
| Wait for the asynchronous command that returned this Completion to complete. More... | |
| bool | isComplete () |
| QPID_CLIENT_INLINE_EXTERN bool | isValid () const |
| QPID_CLIENT_INLINE_EXTERN bool | isNull () const |
| QPID_CLIENT_INLINE_EXTERN | operator bool () const |
| Conversion to bool supports idiom if (handle) { handle->... More... | |
| QPID_CLIENT_INLINE_EXTERN bool | operator! () const |
| Operator ! supports idiom if (!handle) { do_if_handle_is_null(); }. More... | |
| void | swap (Handle< CompletionImpl > &h) |
Protected Member Functions | |
| std::string | getResult () |
Protected Attributes | |
| Impl * | impl |
Returned by asynchronous commands that return a result.
You can use get() to wait for completion and get the result value.
Definition at line 36 of file TypedResult.h.
|
inline |
Definition at line 43 of file TypedResult.h.
|
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 53 of file TypedResult.h.
References qpid::framing::StructHelper::decode(), and qpid::client::Completion::getResult().
|
protectedinherited |
Referenced by qpid::client::TypedResult< T >::get().
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Wait for the asynchronous command that returned this Completion to complete.
| If | the command returns an error. |
|
protectedinherited |
1.8.5