Interface through which messages are sent.
More...
#include <qpid/messaging/Sender.h>
Interface through which messages are sent.
Definition at line 44 of file Sender.h.
◆ Impl
◆ Sender() [1/2]
qpid::messaging::Sender::Sender |
( |
SenderImpl * |
impl = 0 | ) |
|
◆ Sender() [2/2]
qpid::messaging::Sender::Sender |
( |
const Sender & |
| ) |
|
◆ ~Sender()
qpid::messaging::Sender::~Sender |
( |
| ) |
|
◆ close()
void qpid::messaging::Sender::close |
( |
| ) |
|
◆ getAddress()
Address qpid::messaging::Sender::getAddress |
( |
| ) |
const |
Returns an address for this sender.
◆ getAvailable()
uint32_t qpid::messaging::Sender::getAvailable |
( |
| ) |
|
Returns the number of messages for which there is available capacity.
◆ getCapacity()
uint32_t qpid::messaging::Sender::getCapacity |
( |
| ) |
|
Returns the capacity of the sender.
- See also
- setCapacity
◆ getName()
const std::string& qpid::messaging::Sender::getName |
( |
| ) |
const |
Returns the name of this sender.
◆ getSession()
Session qpid::messaging::Sender::getSession |
( |
| ) |
const |
Returns a handle to the session associated with this sender.
◆ getUnsettled()
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).
◆ isNull()
- Returns
- true if handle is null. It is an error to call any function on a null handle.
Definition at line 46 of file Handle.h.
◆ isValid()
- Returns
- true if handle is valid, i.e. not null.
Definition at line 43 of file Handle.h.
◆ operator bool()
Conversion to bool supports idiom if (handle) { handle->...
}
Definition at line 49 of file Handle.h.
◆ operator!()
Operator ! supports idiom if (!handle) { do_if_handle_is_null(); }.
Definition at line 52 of file Handle.h.
◆ operator=()
Sender& qpid::messaging::Sender::operator= |
( |
const Sender & |
| ) |
|
◆ send()
void qpid::messaging::Sender::send |
( |
const Message & |
message, |
|
|
bool |
sync = false |
|
) |
| |
Sends a message.
- Parameters
-
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) |
◆ setCapacity()
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.
◆ swap()
◆ impl
The documentation for this class was generated from the following file: