RMQ - RabbitMQ C++ Library
Public Member Functions | List of all members
BloombergLP::rmqa::RabbitContextImpl Class Reference
Inheritance diagram for BloombergLP::rmqa::RabbitContextImpl:
Inheritance graph
[legend]
Collaboration diagram for BloombergLP::rmqa::RabbitContextImpl:
Collaboration graph
[legend]

Public Member Functions

 RabbitContextImpl (bslma::ManagedPtr< rmqio::EventLoop > eventLoop, const rmqa::RabbitContextOptions &options)
 
bsl::shared_ptr< rmqp::ConnectioncreateVHostConnection (const bsl::string &userDefinedName, const bsl::shared_ptr< rmqt::Endpoint > &endpoint, const bsl::shared_ptr< rmqt::Credentials > &credentials) BSLS_KEYWORD_OVERRIDE
 Connect to a RabbitMQ broker. More...
 
bsl::shared_ptr< rmqp::ConnectioncreateVHostConnection (const bsl::string &userDefinedName, const rmqt::VHostInfo &endpoint) BSLS_KEYWORD_OVERRIDE
 Connect to a RabbitMQ broker. More...
 
rmqt::Future< rmqp::ConnectioncreateNewConnection (const bsl::string &name, const bsl::shared_ptr< rmqt::Endpoint > &endpoint, const bsl::shared_ptr< rmqt::Credentials > &credentials, const bsl::string &suffix)
 

Member Function Documentation

◆ createVHostConnection() [1/2]

bsl::shared_ptr< rmqp::Connection > BloombergLP::rmqa::RabbitContextImpl::createVHostConnection ( const bsl::string &  userDefinedName,
const bsl::shared_ptr< rmqt::Endpoint > &  endpoint,
const bsl::shared_ptr< rmqt::Credentials > &  credentials 
)
virtual

Connect to a RabbitMQ broker.

Parameters
endpointidentifies the broker to connect to
credentialsAuthentication information

Create a new rmqa::VHost to a RabbitMQ broker. Connections will be established (with the broker) when creating producers or consumers on the vhost object

Implements BloombergLP::rmqp::RabbitContext.

◆ createVHostConnection() [2/2]

bsl::shared_ptr< rmqp::Connection > BloombergLP::rmqa::RabbitContextImpl::createVHostConnection ( const bsl::string &  userDefinedName,
const rmqt::VHostInfo endpoint 
)
virtual

Connect to a RabbitMQ broker.

Parameters
vhostInfoidentifies the broker to connect to & authentication details

Create a new rmqa::VHost to a RabbitMQ broker. Connections will be established (with the broker) when creating producers or consumers on the vhost object

Implements BloombergLP::rmqp::RabbitContext.


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