#include <SessionBase.h>
Inheritance diagram for qpid::client::SessionBase:
Public Types | |
typedef framing::TransferContent | DefaultContent |
Public Member Functions | |
framing::FrameSet::shared_ptr | get () |
Get the next message frame-set from the session. | |
Uuid | getId () const |
Get the session ID. | |
void | setSynchronous (SynchronousMode mode) |
In synchronous mode, wait for the broker's response before returning. | |
void | setSynchronous (bool set) |
bool | isSynchronous () const |
SynchronousMode | getSynchronous () const |
void | suspend () |
Suspend the session, can be resumed on a different connection. | |
void | close () |
Close the session. | |
void | sync () |
Synchronize with the broker. | |
Execution & | getExecution () |
Protected Member Functions | |
SessionBase (shared_ptr< SessionCore >) | |
Protected Attributes | |
shared_ptr< SessionCore > | impl |
framing::ProtocolVersion | version |
void qpid::client::SessionBase::setSynchronous | ( | SynchronousMode | mode | ) |
In synchronous mode, wait for the broker's response before returning.
Note this gives lower throughput than asynchronous mode.
In asynchronous mode commands are sent without waiting for a respose (you can use the returned Completion object to wait for completion.)
void qpid::client::SessionBase::suspend | ( | ) |
void qpid::client::SessionBase::sync | ( | ) |
Synchronize with the broker.
Wait for all commands issued so far in the session to complete.