Represent a message.
More...
|
bool | snapshot |
|
bool | recovery |
|
int | seq |
|
int | epoch |
|
◆ MigratoryDataMessage() [1/5]
Copy constructor.
- Parameters
-
◆ MigratoryDataMessage() [2/5]
MigratoryDataMessage::MigratoryDataMessage |
( |
const std::string & |
subject, |
|
|
const std::string & |
content |
|
) |
| |
Create a MigratoryDataMessage object.
- Parameters
-
subject | The subject of the message |
content | The content of the message |
◆ MigratoryDataMessage() [3/5]
MigratoryDataMessage::MigratoryDataMessage |
( |
const std::string & |
subject, |
|
|
const std::string & |
content, |
|
|
const std::string & |
closure |
|
) |
| |
Create a MigratoryDataMessage object.
- Parameters
-
subject | The subject of the message |
content | The content of the message |
closure | The closure of the message |
◆ MigratoryDataMessage() [4/5]
MigratoryDataMessage::MigratoryDataMessage |
( |
const std::string & |
subject, |
|
|
const std::string & |
content, |
|
|
std::vector< MigratoryDataField > & |
fields |
|
) |
| |
Create a MigratoryDataMessage object.
- Parameters
-
subject | The subject of the message |
content | The content of the message |
fields | The fields of the message |
◆ MigratoryDataMessage() [5/5]
MigratoryDataMessage::MigratoryDataMessage |
( |
const std::string & |
subject, |
|
|
const std::string & |
content, |
|
|
std::vector< MigratoryDataField > & |
fields, |
|
|
const std::string & |
closure |
|
) |
| |
Create a MigratoryDataMessage object.
- Parameters
-
subject | The subject of the message |
content | The content of the message |
fields | The fields of the message |
closure | The closure of the message |
◆ getSubject()
std::string MigratoryDataMessage::getSubject |
( |
| ) |
const |
Get the subject of the message.
- Returns
- A string representing the subject of the message
◆ getContent()
std::string MigratoryDataMessage::getContent |
( |
| ) |
const |
Get the content of the message.
- Returns
- A string representing the content of the message
◆ getFields()
Get the fields of the message.
- Returns
- The fields of the message as a list of MigratoryDataField objects
◆ getClosure()
std::string MigratoryDataMessage::getClosure |
( |
| ) |
const |
Get the closure of the message.
- Returns
- The closure data of the message
◆ isSnapshot()
bool MigratoryDataMessage::isSnapshot |
( |
| ) |
const |
Test whether the message is a snapshot message or not.
- Returns
- true if the message is a snapshot message
◆ setReplyTosubject()
void MigratoryDataMessage::setReplyTosubject |
( |
std::string & |
replyToSubject | ) |
|
Set the subject to be used to reply to this message.
If a reply subject is attached to a message with this method, the message acts as a request. The clients which receive a request message will be able to reply by sending a message having as subject the reply subject.
If the reply subject is not already subscribed, it is subscribed by the API library implicitly. It can be reused for subsequent request/reply interactions (and even for receiving multiple replies to one request). When it is not needed anymore, it should be unsubscribed explicitly.
- Parameters
-
subject | The subject to be used to reply to this message. |
◆ getReplyToSubject()
std::string MigratoryDataMessage::getReplyToSubject |
( |
| ) |
const |
Get the subject to be used to reply to this message.
A client which receives a message containing a reply subject should interpret the message as a request. It has the option to use the reply subject - extracted from the message with this method - to send a reply.
- Returns
- The subject to be used to reply to this message.