| Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
#include <qpid/messaging/Sender.h>
Public Member Functions | |
| Sender (SenderImpl *impl=0) | |
| Sender (const Sender &) | |
| ~Sender () | |
| Sender & | operator= (const Sender &) |
| void | send (const Message &message, bool sync=false) |
| Sends a message. More... | |
| void | close () |
| void | setCapacity (uint32_t) |
| Sets the capacity for the sender. More... | |
| uint32_t | getCapacity () |
| Returns the capacity of the sender. More... | |
| uint32_t | getUnsettled () |
| Returns the number of sent messages pending confirmation of receipt by the broker. More... | |
| uint32_t | getAvailable () |
| Returns the number of messages for which there is available capacity. More... | |
| const std::string & | getName () const |
| Returns the name of this sender. More... | |
| Session | getSession () const |
| Returns a handle to the session associated with this sender. More... | |
| Address | getAddress () const |
| Returns an address for this sender. More... | |
| QPID_MESSAGING_INLINE_EXTERN bool | isValid () const |
| QPID_MESSAGING_INLINE_EXTERN bool | isNull () const |
| QPID_MESSAGING_INLINE_EXTERN | operator bool () const |
| Conversion to bool supports idiom if (handle) { handle->... More... | |
| QPID_MESSAGING_INLINE_EXTERN bool | operator! () const |
| Operator ! supports idiom if (!handle) { do_if_handle_is_null(); }. More... | |
| void | swap (Handle< SenderImpl > &h) |
Protected Types | |
| typedef SenderImpl | Impl |
Protected Attributes | |
| Impl * | impl |
|
protectedinherited |
| qpid::messaging::Sender::Sender | ( | SenderImpl * | impl = 0 | ) |
| qpid::messaging::Sender::Sender | ( | const Sender & | ) |
| qpid::messaging::Sender::~Sender | ( | ) |
| void qpid::messaging::Sender::close | ( | ) |
| Address qpid::messaging::Sender::getAddress | ( | ) | const |
Returns an address for this sender.
| uint32_t qpid::messaging::Sender::getAvailable | ( | ) |
Returns the number of messages for which there is available capacity.
| uint32_t qpid::messaging::Sender::getCapacity | ( | ) |
Returns the capacity of the sender.
| const std::string& qpid::messaging::Sender::getName | ( | ) | const |
Returns the name of this sender.
| Session qpid::messaging::Sender::getSession | ( | ) | const |
Returns a handle to the session associated with this sender.
| 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).
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
| 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) |
| 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.
|
inlineinherited |
|
protectedinherited |
1.8.16