An AMQP Exchange.
More...
#include <rmqt_exchange.h>
|
| | 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::FieldTable & | arguments () const |
| |
| bool | isDefault () const |
| |
|
|
static const char | DEFAULT_EXCHANGE [] = "" |
| |
|
|
bsl::ostream & | operator<< (bsl::ostream &os, const Exchange &exchange) |
| |
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.
◆ 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.
◆ 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: