#include <Sender.h>
Public Member Functions | |
QPID_MESSAGING_EXTERN | Sender (SenderImpl *impl=0) |
QPID_MESSAGING_EXTERN | Sender (const Sender &) |
QPID_MESSAGING_EXTERN Sender & | operator= (const Sender &) |
QPID_MESSAGING_EXTERN void | send (const Message &message, bool sync=false) |
QPID_MESSAGING_EXTERN void | close () |
QPID_MESSAGING_EXTERN void | setCapacity (uint32_t) |
QPID_MESSAGING_EXTERN uint32_t | getCapacity () |
QPID_MESSAGING_EXTERN uint32_t | getUnsettled () |
QPID_MESSAGING_EXTERN uint32_t | getAvailable () |
QPID_MESSAGING_EXTERN const std::string & | getName () const |
QPID_MESSAGING_EXTERN Session | getSession () const |
QPID_MESSAGING_EXTERN Address | getAddress () const |
Public Member Functions inherited from qpid::messaging::Handle< SenderImpl > | |
QPID_MESSAGING_INLINE_EXTERN bool | isValid () const |
QPID_MESSAGING_INLINE_EXTERN bool | isNull () const |
QPID_MESSAGING_INLINE_EXTERN | operator bool () const |
QPID_MESSAGING_INLINE_EXTERN bool | operator! () const |
void | swap (Handle< SenderImpl > &h) |
Friends | |
class | qpid::messaging::PrivateImplRef< Sender > |
Additional Inherited Members | |
Protected Types inherited from qpid::messaging::Handle< SenderImpl > | |
typedef SenderImpl | Impl |
Protected Attributes inherited from qpid::messaging::Handle< SenderImpl > | |
Impl * | impl |
Interface through which messages are sent.
QPID_MESSAGING_EXTERN Address qpid::messaging::Sender::getAddress | ( | ) | const |
Returns an address for this sender.
QPID_MESSAGING_EXTERN uint32_t qpid::messaging::Sender::getAvailable | ( | ) |
Returns the number of messages for which there is available capacity.
QPID_MESSAGING_EXTERN uint32_t qpid::messaging::Sender::getCapacity | ( | ) |
Returns the capacity of the sender.
QPID_MESSAGING_EXTERN const std::string& qpid::messaging::Sender::getName | ( | ) | const |
Returns the name of this sender.
QPID_MESSAGING_EXTERN Session qpid::messaging::Sender::getSession | ( | ) | const |
Returns a handle to the session associated with this sender.
QPID_MESSAGING_EXTERN uint32_t qpid::messaging::Sender::getUnsettled | ( | ) |
Returns the number of sent messages pending confirmation of receipt by the broker. (These are the 'in-doubt' messages).
QPID_MESSAGING_EXTERN void qpid::messaging::Sender::send | ( | const Message & | message, |
bool | sync = false |
||
) |
Sends a message
message | the message to send |
sync | if true the call will block until the server confirms receipt of the messages; if false will only block for available capacity (i.e. pending == capacity) |
QPID_MESSAGING_EXTERN void qpid::messaging::Sender::setCapacity | ( | uint32_t | ) |
Sets the capacity for the sender. The capacity determines how many outgoing messages can be held pending confirmation of receipt by the broker.