|
libbmq b6028b29b733bc7541593d2905a5f79a9f0192fc
|
Mechanism to build a batch of CONFIRM messages.
#include <bmqa_confirmeventbuilder.h>
Public Member Functions | |
| ConfirmEventBuilder () | |
| ~ConfirmEventBuilder () | |
| Destroy this instance. | |
| bmqt::EventBuilderResult::Enum | addMessageConfirmation (const Message &message) |
| bmqt::EventBuilderResult::Enum | addMessageConfirmation (const MessageConfirmationCookie &cookie) |
| void | reset () |
| int | messageCount () const |
| const bdlbb::Blob & | blob () const |
|
inline |
Create an invalid instance. Application should not create ConfirmEventBuilder themselves, but ask the bmqa::Session to give them one, by using bmqa::Session::loadConfirmEventBuilder.
| BloombergLP::bmqa::ConfirmEventBuilder::~ConfirmEventBuilder | ( | ) |
|
inline |
Append a confirmation message for the specified message. Return zero on success, and a non-zero value otherwise. Behavior is undefined unless this instance was obtained using bmqa::Session::loadConfirmEventBuilder.
References addMessageConfirmation(), and BloombergLP::bmqa::Message::confirmationCookie().
Referenced by addMessageConfirmation().
| bmqt::EventBuilderResult::Enum BloombergLP::bmqa::ConfirmEventBuilder::addMessageConfirmation | ( | const MessageConfirmationCookie & | cookie | ) |
Append a confirmation message for the specified MessageConfirmationCookie cookie. Return zero on success, and a non-zero value otherwise. Behavior is undefined unless this instance was obtained using bmqa::Session::loadConfirmEventBuilder.
| void BloombergLP::bmqa::ConfirmEventBuilder::reset | ( | ) |
Reset the builder, effectively discarding the batch of confirmation messages under construction.
| int BloombergLP::bmqa::ConfirmEventBuilder::messageCount | ( | ) | const |
Return the number of messages currently in the ConfirmEvent being built. Behavior is undefined unless this instance was obtained using bmqa::Session::loadConfirmEventBuilder.
| const bdlbb::Blob & BloombergLP::bmqa::ConfirmEventBuilder::blob | ( | ) | const |
Return a reference not offering modifiable access to the blob of confirmation messages batch built by this builder. If no messages were added, this will return an empty blob, i.e., a blob with length == 0. Behavior is undefined unless this instance was obtained using bmqa::Session::loadConfirmEventBuilder.