#include <Message.h>
Public Member Functions | |
Message (const std::string &data=std::string(), const std::string &routingKey=std::string()) | |
Create a Message. | |
std::string | getDestination () const |
The destination of messages sent to the broker is the exchange name. | |
bool | isRedelivered () const |
Check the redelivered flag. | |
void | setRedelivered (bool redelivered) |
Set the redelivered flag. | |
framing::FieldTable & | getHeaders () |
Get a modifyable reference to the message headers. | |
const framing::FieldTable & | getHeaders () const |
Get a non-modifyable reference to the message headers. | |
const framing::MessageTransferBody & | getMethod () const |
const framing::SequenceNumber & | getId () const |
Message (const framing::FrameSet &frameset) |
Definition at line 37 of file Message.h.
qpid::client::Message::Message | ( | const std::string & | data = std::string() , |
|
const std::string & | routingKey = std::string() | |||
) |
Create a Message.
data | Data for the message body. | |
routingKey | Passed to the exchange that routes the message. |
std::string qpid::client::Message::getDestination | ( | ) | const |
The destination of messages sent to the broker is the exchange name.
The destination of messages received from the broker is the delivery tag identifyig the local subscription (often this is the name of the subscribed queue.)
bool qpid::client::Message::isRedelivered | ( | ) | const |
Check the redelivered flag.
void qpid::client::Message::setRedelivered | ( | bool | redelivered | ) |
Set the redelivered flag.
framing::FieldTable& qpid::client::Message::getHeaders | ( | ) |
Get a modifyable reference to the message headers.
const framing::FieldTable& qpid::client::Message::getHeaders | ( | ) | const |
Get a non-modifyable reference to the message headers.