qpid::messaging::Session Class Reference
A session represents a distinct 'conversation' which can involve sending and receiving messages from different sources and sinks.
More...
#include <qpid/messaging/Session.h>
List of all members.
Public Member Functions |
| Session (SessionImpl *impl=0) |
| Session (const Session &) |
| ~Session () |
Session & | operator= (const Session &) |
void | close () |
void | commit () |
void | rollback () |
void | acknowledge () |
| Acknowledges all outstanding messages that have been received by the application on this session.
|
void | reject (Message &) |
| Rejects the specified message.
|
void | sync () |
void | flush () |
uint32_t | available () |
| Returns the number of messages received and waiting to be fetched.
|
uint32_t | pendingAck () |
| Returns a count of the number of messages received this session that have been acknowledged, but for which that acknowledgement has not yet been confirmed as processed by the server.
|
bool | fetch (Message &message, qpid::sys::Duration timeout=qpid::sys::TIME_INFINITE) |
Message | fetch (qpid::sys::Duration timeout=qpid::sys::TIME_INFINITE) |
bool | dispatch (qpid::sys::Duration timeout=qpid::sys::TIME_INFINITE) |
Sender | createSender (const Address &address, const VariantMap &options=VariantMap()) |
Sender | createSender (const std::string &address, const VariantMap &options=VariantMap()) |
Receiver | createReceiver (const Address &address, const VariantMap &options=VariantMap()) |
Receiver | createReceiver (const Address &address, const Filter &filter, const VariantMap &options=VariantMap()) |
Receiver | createReceiver (const std::string &address, const VariantMap &options=VariantMap()) |
Receiver | createReceiver (const std::string &address, const Filter &filter, const VariantMap &options=VariantMap()) |
Address | createTempQueue (const std::string &baseName=std::string()) |
bool | isValid () const |
bool | isNull () const |
| operator bool () const |
| Conversion to bool supports idiom if (handle) { handle->.
|
bool | operator! () const |
| Operator ! supports idiom if (!handle) { do_if_handle_is_null(); }.
|
void | swap (Handle< SessionImpl > &h) |
Protected Types |
typedef SessionImpl | Impl |
Protected Attributes |
Impl * | impl |
Detailed Description
A session represents a distinct 'conversation' which can involve sending and receiving messages from different sources and sinks.
Definition at line 51 of file Session.h.
Member Typedef Documentation
Constructor & Destructor Documentation
qpid::messaging::Session::Session |
( |
SessionImpl * |
impl = 0 |
) |
|
qpid::messaging::Session::Session |
( |
const Session & |
|
) |
|
qpid::messaging::Session::~Session |
( |
|
) |
|
Member Function Documentation
void qpid::messaging::Session::acknowledge |
( |
|
) |
|
Acknowledges all outstanding messages that have been received by the application on this session.
uint32_t qpid::messaging::Session::available |
( |
|
) |
|
Returns the number of messages received and waiting to be fetched.
void qpid::messaging::Session::close |
( |
|
) |
|
void qpid::messaging::Session::commit |
( |
|
) |
|
Address qpid::messaging::Session::createTempQueue |
( |
const std::string & |
baseName = std::string() |
) |
|
void qpid::messaging::Session::flush |
( |
|
) |
|
uint32_t qpid::messaging::Session::pendingAck |
( |
|
) |
|
Returns a count of the number of messages received this session that have been acknowledged, but for which that acknowledgement has not yet been confirmed as processed by the server.
void qpid::messaging::Session::reject |
( |
Message & |
|
) |
|
Rejects the specified message.
This will prevent the message being redelivered.
void qpid::messaging::Session::rollback |
( |
|
) |
|
void qpid::messaging::Session::sync |
( |
|
) |
|
Member Data Documentation
The documentation for this class was generated from the following file: