RMQ - RabbitMQ C++ Library
rmqp_consumertracing.h
1// Copyright 2020-2023 Bloomberg Finance L.P.
2// SPDX-License-Identifier: Apache-2.0
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#ifndef INCLUDED_RMQP_CONSUMERTRACING
17#define INCLUDED_RMQP_CONSUMERTRACING
18
19#include <rmqt_endpoint.h>
20
21#include <bsl_memory.h>
22
23namespace BloombergLP {
24namespace rmqp {
25
26class MessageGuard;
27
36 public:
37 class Context {
38 public:
39 virtual ~Context();
40 };
41
50 virtual bsl::shared_ptr<Context>
51 create(const rmqp::MessageGuard& messageGuard,
52 const bsl::string& queueName,
53 const bsl::shared_ptr<const rmqt::Endpoint>& endpoint) const = 0;
54
55 virtual ~ConsumerTracing();
56};
57
58} // namespace rmqp
59} // namespace BloombergLP
60
61#endif
Definition: rmqp_consumertracing.h:37
An interface for ConsumerTracing class.
Definition: rmqp_consumertracing.h:35
virtual bsl::shared_ptr< Context > create(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.
An interface for MessageGuard class.
Definition: rmqp_messageguard.h:39