Apache Qpid C++ API
Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation

qpid::client::Completion Class Reference
[Qpid C++ Client API]

Asynchronous commands that do not return a result will return a Completion. More...

#include <Completion.h>

List of all members.

Public Member Functions

 Completion ()
 Completion (Future f, shared_ptr< SessionImpl > s)
void wait ()
 Wait for the asynchronous command that returned this Completion to complete.
bool isComplete ()

Protected Attributes

Future future
shared_ptr< SessionImplsession


Detailed Description

Asynchronous commands that do not return a result will return a Completion.

You can use the completion to wait for that specific command to complete.

See also:
TypedResult

Definition at line 41 of file Completion.h.


Constructor & Destructor Documentation

qpid::client::Completion::Completion (  )  [inline]

Definition at line 49 of file Completion.h.

qpid::client::Completion::Completion ( Future  f,
shared_ptr< SessionImpl s 
) [inline]

Definition at line 52 of file Completion.h.


Member Function Documentation

bool qpid::client::Completion::isComplete (  )  [inline]

Definition at line 64 of file Completion.h.

References future, qpid::client::Future::isComplete(), and session.

void qpid::client::Completion::wait (  )  [inline]

Wait for the asynchronous command that returned this Completion to complete.

Exceptions:
If the command returns an error, get() throws an exception.

Definition at line 59 of file Completion.h.

References future, session, and qpid::client::Future::wait().


Member Data Documentation

Definition at line 44 of file Completion.h.

Referenced by qpid::client::TypedResult< T >::get(), isComplete(), and wait().

Definition at line 45 of file Completion.h.

Referenced by qpid::client::TypedResult< T >::get(), isComplete(), and wait().


The documentation for this class was generated from the following file:

Qpid C++ API Reference
Generated on Thu Mar 19 15:24:03 2009 for Qpid C++ Client API by doxygen 1.5.7.1