RMQ - RabbitMQ C++ Library
rmqp_topologyupdate.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_TOPOLOGYUPDATE
17#define INCLUDED_RMQP_TOPOLOGYUPDATE
18
19#include <rmqt_fieldvalue.h>
20#include <rmqt_topology.h>
21#include <rmqt_topologyupdate.h>
22
23#include <bsl_string.h>
24
25namespace BloombergLP {
26namespace rmqp {
27
35 public:
36 // CREATORS
37 virtual ~TopologyUpdate();
38
43 virtual void bind(const rmqt::ExchangeHandle& exchange,
44 const rmqt::QueueHandle& queue,
45 const bsl::string& bindingKey,
46 const rmqt::FieldTable& args = rmqt::FieldTable()) = 0;
47
53 virtual void unbind(const rmqt::ExchangeHandle& exchange,
54 const rmqt::QueueHandle& queue,
55 const bsl::string& bindingKey,
56 const rmqt::FieldTable& args = rmqt::FieldTable()) = 0;
57
62 virtual const rmqt::TopologyUpdate& topologyUpdate() const = 0;
63};
64
65} // namespace rmqp
66} // namespace BloombergLP
67
68#endif // INCLUDED_RMQP_TOPOLOGYUPDATE
An interface providing a manipulatable RabbitMQ topology update structure.
Definition: rmqp_topologyupdate.h:34
virtual void unbind(const rmqt::ExchangeHandle &exchange, const rmqt::QueueHandle &queue, const bsl::string &bindingKey, const rmqt::FieldTable &args=rmqt::FieldTable())=0
virtual void bind(const rmqt::ExchangeHandle &exchange, const rmqt::QueueHandle &queue, const bsl::string &bindingKey, const rmqt::FieldTable &args=rmqt::FieldTable())=0
virtual const rmqt::TopologyUpdate & topologyUpdate() const =0
Get a readonly copy of stored topology update.
Definition: rmqt_topologyupdate.h:33
Represents AMQP 0.9.1 Field Table (dict of FieldValues)
Definition: rmqt_fieldvalue.h:108