RMQ - RabbitMQ C++ Library
Public Member Functions | List of all members
BloombergLP::rmqp::RabbitContext Class Referenceabstract

Interface for spawning RabbitMQ connections. More...

#include <rmqp_rabbitcontext.h>

Inheritance diagram for BloombergLP::rmqp::RabbitContext:
Inheritance graph
[legend]

Public Member Functions

virtual bsl::shared_ptr< ConnectioncreateVHostConnection (const bsl::string &userDefinedName, const bsl::shared_ptr< rmqt::Endpoint > &endpoint, const bsl::shared_ptr< rmqt::Credentials > &credentials)=0
 Connect to a RabbitMQ broker. More...
 
virtual bsl::shared_ptr< ConnectioncreateVHostConnection (const bsl::string &userDefinedName, const rmqt::VHostInfo &endpoint)=0
 Connect to a RabbitMQ broker. More...
 

Detailed Description

Interface for spawning RabbitMQ connections.

rmqp::RabbitContext allows creation of RabbitMQ connections. The implementation, typically rmqa::RabbitContext will hold any resources required for creating these See rmqa::RabbitContext documentation for usage

Member Function Documentation

◆ createVHostConnection() [1/2]

virtual bsl::shared_ptr< Connection > BloombergLP::rmqp::RabbitContext::createVHostConnection ( const bsl::string &  userDefinedName,
const bsl::shared_ptr< rmqt::Endpoint > &  endpoint,
const bsl::shared_ptr< rmqt::Credentials > &  credentials 
)
pure 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

Implemented in BloombergLP::rmqa::RabbitContextImpl.

◆ createVHostConnection() [2/2]

virtual bsl::shared_ptr< Connection > BloombergLP::rmqp::RabbitContext::createVHostConnection ( const bsl::string &  userDefinedName,
const rmqt::VHostInfo endpoint 
)
pure 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

Implemented in BloombergLP::rmqa::RabbitContextImpl.


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