#include <SessionBase.h>
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, which can be resumed on a different connection. | |
void | close () |
Close the session. | |
Execution & | getExecution () |
void | sync () |
void | flush () |
void | markCompleted (const framing::SequenceNumber &id, bool cumulative, bool notifyPeer) |
void | sendCompletion () |
Protected Member Functions | |
SessionBase (shared_ptr< SessionImpl >) | |
Protected Attributes | |
shared_ptr< SessionImpl > | impl |
framing::ProtocolVersion | version |
Classes | |
class | ScopedSync |
Instances of this class turn synchronous mode on for the duration of their scope (and revert back to async if required afterwards). More... |
framing::FrameSet::shared_ptr qpid::client::SessionBase::get | ( | ) |
Get the next message frame-set from the session.
void qpid::client::SessionBase::setSynchronous | ( | SynchronousMode | mode | ) |
In synchronous mode, wait for the broker's response before returning.
This gives lower throughput than asynchronous mode.
In asynchronous mode commands are sent without waiting for a response (you can use the returned Completion object to wait for completion).
void qpid::client::SessionBase::suspend | ( | ) |