1 #ifndef QPID_MESSAGING_RECEIVER_H 2 #define QPID_MESSAGING_RECEIVER_H 24 #include "qpid/messaging/ImportExport.h" 26 #include "qpid/messaging/exceptions.h" 27 #include "qpid/messaging/Handle.h" 28 #include "qpid/messaging/Duration.h" 34 template <
class>
class PrivateImplRef;
48 QPID_MESSAGING_EXTERN
Receiver(ReceiverImpl* impl = 0);
49 QPID_MESSAGING_EXTERN Receiver(
const Receiver&);
50 QPID_MESSAGING_EXTERN ~Receiver();
51 QPID_MESSAGING_EXTERN Receiver& operator=(
const Receiver&);
57 QPID_MESSAGING_EXTERN
bool get(
Message& message,
Duration timeout=Duration::FOREVER);
79 QPID_MESSAGING_EXTERN
bool fetch(
Message& message,
Duration timeout=Duration::FOREVER);
91 QPID_MESSAGING_EXTERN
Message fetch(
Duration timeout=Duration::FOREVER);
97 QPID_MESSAGING_EXTERN
void setCapacity(uint32_t);
104 QPID_MESSAGING_EXTERN uint32_t getCapacity();
109 QPID_MESSAGING_EXTERN uint32_t getAvailable();
116 QPID_MESSAGING_EXTERN uint32_t getUnsettled();
121 QPID_MESSAGING_EXTERN
void close();
126 QPID_MESSAGING_EXTERN
bool isClosed()
const;
131 QPID_MESSAGING_EXTERN
const std::string& getName()
const;
136 QPID_MESSAGING_EXTERN
Session getSession()
const;
141 QPID_MESSAGING_EXTERN
Address getAddress()
const;
Definition: Address.h:122
Definition: Receiver.h:45
Definition: Connection.h:36
Definition: Duration.h:35