RMQ - RabbitMQ C++ Library
rmqa_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_RMQA_TOPOLOGYUPDATE
17#define INCLUDED_RMQA_TOPOLOGYUPDATE
18
19#include <rmqa_topology.h>
20#include <rmqp_topologyupdate.h>
21#include <rmqt_properties.h>
22
23#include <ball_log.h>
24
25namespace BloombergLP {
26namespace rmqa {
28 public:
29 BALL_LOG_SET_CLASS_CATEGORY("RMQA.TOPOLOGYUPDATE");
30
32 ~TopologyUpdate() BSLS_KEYWORD_OVERRIDE;
33
38 void bind(const rmqt::ExchangeHandle& exchange,
39 const rmqt::QueueHandle& queue,
40 const bsl::string& bindingKey,
41 const rmqt::FieldTable& args = rmqt::FieldTable())
42 BSLS_KEYWORD_OVERRIDE;
43
49 void unbind(const rmqt::ExchangeHandle& exchange,
50 const rmqt::QueueHandle& queue,
51 const bsl::string& bindingKey,
52 const rmqt::FieldTable& args = rmqt::FieldTable())
53 BSLS_KEYWORD_OVERRIDE;
54
55#ifdef USES_LIBRMQ_EXPERIMENTAL_FEATURES
70 void deleteQueue(const bsl::string& queueName,
71 rmqt::QueueUnused::Value ifUnused,
72 rmqt::QueueEmpty::Value ifEmpty);
73#endif
74
76 virtual const rmqt::TopologyUpdate&
77 topologyUpdate() const BSLS_KEYWORD_OVERRIDE;
78
79 private:
80 rmqt::TopologyUpdate d_topologyUpdate;
81};
82
83} // namespace rmqa
84} // namespace BloombergLP
85#endif // INCLUDED_RMQA_TOPOLOGYUPDATE
Definition: rmqa_topologyupdate.h:27
virtual const rmqt::TopologyUpdate & topologyUpdate() const BSLS_KEYWORD_OVERRIDE
Topology containing only updates to the initial state.
Definition: rmqa_topologyupdate.cpp:68
void bind(const rmqt::ExchangeHandle &exchange, const rmqt::QueueHandle &queue, const bsl::string &bindingKey, const rmqt::FieldTable &args=rmqt::FieldTable()) BSLS_KEYWORD_OVERRIDE
Definition: rmqa_topologyupdate.cpp:32
void unbind(const rmqt::ExchangeHandle &exchange, const rmqt::QueueHandle &queue, const bsl::string &bindingKey, const rmqt::FieldTable &args=rmqt::FieldTable()) BSLS_KEYWORD_OVERRIDE
Definition: rmqa_topologyupdate.cpp:44
An interface providing a manipulatable RabbitMQ topology update structure.
Definition: rmqp_topologyupdate.h:34
Definition: rmqt_topologyupdate.h:33
Represents AMQP 0.9.1 Field Table (dict of FieldValues)
Definition: rmqt_fieldvalue.h:108