RMQ - RabbitMQ C++ Library
Public Types | Public Member Functions | List of all members
BloombergLP::rmqt::ConfirmResponse Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ConfirmResponse() [1/2]

BloombergLP::rmqt::ConfirmResponse::ConfirmResponse ( const Status  status)
explicit

ConfirmResponse constructor.

Parameters
statusResponse status (ack/reject/return)

◆ ConfirmResponse() [2/2]

BloombergLP::rmqt::ConfirmResponse::ConfirmResponse ( const uint16_t  code,
const bsl::string &  reason 
)

ConfirmResponse constructor.

Parameters
codeResponse code
reasonReason for the response

The documentation for this class was generated from the following files: