|
RMQ - RabbitMQ C++ Library
|
An AMQP publisher confirm response. More...
#include <rmqt_confirmresponse.h>
Public Types | |
| enum | Status { ACK , REJECT , RETURN } |
Public Member Functions | |
| ConfirmResponse (const Status status) | |
| ConfirmResponse constructor. More... | |
| ConfirmResponse (const uint16_t code, const bsl::string &reason) | |
| ConfirmResponse constructor. More... | |
| Status | status () const |
| bdlb::NullableValue< uint16_t > | code () const |
| bdlb::NullableValue< bsl::string > | reason () const |
An AMQP publisher confirm response.
Represents a response from the RabbitMQ broker acknowledging (or rejecting) a published message. Response status ACK means that the message is accepted by the broker. Status REJECT or RETURN means that there is a problem and broker has not accepted the message.
|
explicit |
ConfirmResponse constructor.
| status | Response status (ack/reject/return) |
| BloombergLP::rmqt::ConfirmResponse::ConfirmResponse | ( | const uint16_t | code, |
| const bsl::string & | reason | ||
| ) |
ConfirmResponse constructor.
| code | Response code |
| reason | Reason for the response |