1 #ifndef QPID_MESSAGING_SESSION_H 2 #define QPID_MESSAGING_SESSION_H 24 #include "qpid/messaging/ImportExport.h" 26 #include "qpid/messaging/exceptions.h" 27 #include "qpid/messaging/Duration.h" 28 #include "qpid/messaging/Handle.h" 36 template <
class>
class PrivateImplRef;
52 QPID_MESSAGING_EXTERN
Session(SessionImpl* impl = 0);
53 QPID_MESSAGING_EXTERN Session(
const Session&);
54 QPID_MESSAGING_EXTERN ~Session();
55 QPID_MESSAGING_EXTERN Session& operator=(
const Session&);
63 QPID_MESSAGING_EXTERN
void close();
72 QPID_MESSAGING_EXTERN
void commit();
73 QPID_MESSAGING_EXTERN
void rollback();
82 QPID_MESSAGING_EXTERN
void acknowledge(
bool sync=
false);
86 QPID_MESSAGING_EXTERN
void acknowledge(
Message&,
bool sync=
false);
90 QPID_MESSAGING_EXTERN
void acknowledgeUpTo(
Message&,
bool sync=
false);
96 QPID_MESSAGING_EXTERN
void reject(
Message&);
102 QPID_MESSAGING_EXTERN
void release(
Message&);
112 QPID_MESSAGING_EXTERN
void sync(
bool block=
true);
120 QPID_MESSAGING_EXTERN uint32_t getReceivable();
126 QPID_MESSAGING_EXTERN uint32_t getUnsettledAcks();
135 QPID_MESSAGING_EXTERN
bool nextReceiver(
Receiver&,
Duration timeout=Duration::FOREVER);
144 QPID_MESSAGING_EXTERN
Receiver nextReceiver(
Duration timeout=Duration::FOREVER);
153 QPID_MESSAGING_EXTERN
Sender createSender(
const Address& address);
164 QPID_MESSAGING_EXTERN
Sender createSender(
const std::string& address);
184 QPID_MESSAGING_EXTERN
Receiver createReceiver(
const std::string& address);
190 QPID_MESSAGING_EXTERN
Sender getSender(
const std::string& name)
const;
195 QPID_MESSAGING_EXTERN
Receiver getReceiver(
const std::string& name)
const;
200 QPID_MESSAGING_EXTERN
Connection getConnection()
const;
206 QPID_MESSAGING_EXTERN
bool hasError();
212 QPID_MESSAGING_EXTERN
void checkError();
Definition: Address.h:122
Definition: Receiver.h:45
Definition: Connection.h:36
Definition: Duration.h:35
Definition: Connection.h:45