qpid::client::SessionBase Class Reference

Basic session operations that are not derived from AMQP XML methods. More...

#include <SessionBase.h>

Inheritance diagram for qpid::client::SessionBase:

Inheritance graph
[legend]

List of all members.

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.
ExecutiongetExecution ()
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...


Detailed Description

Basic session operations that are not derived from AMQP XML methods.

Member Function Documentation

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).

See also:
SynchronousMode

void qpid::client::SessionBase::suspend (  ) 

Suspend the session, which can be resumed on a different connection.

See also:
Connection::resume()


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

Generated on Thu May 15 22:24:10 2008 for Qpid by  doxygen 1.5.5