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

An interface for ConsumerTracing class. More...

#include <rmqp_consumertracing.h>

Classes

class  Context
 

Public Member Functions

virtual bsl::shared_ptr< Contextcreate (const rmqp::MessageGuard &messageGuard, const bsl::string &queueName, const bsl::shared_ptr< const rmqt::Endpoint > &endpoint) const =0
 create a (tracing) context with relevant pieces of the consumer context. More...
 

Detailed Description

An interface for ConsumerTracing class.

A ConsumerTracing class implements the create method which will create a Tracing Context designed to span the lifetime of the message consumption process, the create method will be invoked from the same thread that the consumer is called back with. The context will be held until the message has been 'processed' ack/nack'd

Member Function Documentation

◆ create()

virtual bsl::shared_ptr< Context > BloombergLP::rmqp::ConsumerTracing::create ( const rmqp::MessageGuard messageGuard,
const bsl::string &  queueName,
const bsl::shared_ptr< const rmqt::Endpoint > &  endpoint 
) const
pure virtual

create a (tracing) context with relevant pieces of the consumer context.

Parameters
messageGuardread only reference to the messageGuard (provides access to the message/properties).
queueNamethe name of the queue the current consumer is consuming from.
endpointthe server endpoint details the current consumer is connected to.

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