RMQ - RabbitMQ C++ Library
Public Member Functions | Static Public Attributes | Friends | List of all members
BloombergLP::rmqt::Exchange Class Reference

An AMQP Exchange. More...

#include <rmqt_exchange.h>

Public Member Functions

 Exchange (const bsl::string &name, bool passive=false, const rmqt::ExchangeType &exchangeType=ExchangeType::DIRECT, bool autoDelete=false, bool durable=true, bool internal=false, const rmqt::FieldTable &args=rmqt::FieldTable())
 
bool passive () const
 
const bsl::string & name () const
 
const bsl::string & type () const
 
bool autoDelete () const
 
bool durable () const
 
bool internal () const
 
const rmqt::FieldTablearguments () const
 
bool isDefault () const
 

Static Public Attributes

static const char DEFAULT_EXCHANGE [] = ""
 

Friends

bsl::ostream & operator<< (bsl::ostream &os, const Exchange &exchange)
 

Detailed Description

An AMQP Exchange.

Represents an Exchange to be declared on the RabbitMQ Broker. Exchange objects are not useful outside of a topology. Use rmqa::Topology::addExchange to create these.

Constructor & Destructor Documentation

◆ Exchange()

BloombergLP::rmqt::Exchange::Exchange ( const bsl::string &  name,
bool  passive = false,
const rmqt::ExchangeType exchangeType = ExchangeType::DIRECT,
bool  autoDelete = false,
bool  durable = true,
bool  internal = false,
const rmqt::FieldTable args = rmqt::FieldTable() 
)
explicit

Creates an exchange from a number of properties. Calling this directly is generally not required. Use rmqa::Topology::addExchange Create an exchange.

Member Function Documentation

◆ isDefault()

bool BloombergLP::rmqt::Exchange::isDefault ( ) const

Checks whether the exchange properties match those of the 'Default' AMQP exchange:

  • Blank name
  • DIRECT type
  • Auto-delete: false
  • Durable: true
  • Internal: false
  • Empty arguments field table

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