From b3747b9e1a5090a5eea0ac067b94d259f17ee09a Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 14 Jun 2007 07:12:14 +0000 Subject: Add ability for a queue to record all bindings to it, such that these can be removed when the queue is deleted. Fix to QPID-438 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@547151 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/BrokerQueue.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cpp/src/qpid/broker/BrokerQueue.cpp') diff --git a/cpp/src/qpid/broker/BrokerQueue.cpp b/cpp/src/qpid/broker/BrokerQueue.cpp index 3521e63444..58a8c85fcb 100644 --- a/cpp/src/qpid/broker/BrokerQueue.cpp +++ b/cpp/src/qpid/broker/BrokerQueue.cpp @@ -238,6 +238,16 @@ void Queue::destroy() } } +void Queue::bound(const string& exchange, const string& key, const FieldTable& args) +{ + bindings.add(exchange, key, args); +} + +void Queue::unbind(ExchangeRegistry& exchanges, Queue::shared_ptr shared_ref) +{ + bindings.unbind(exchanges, shared_ref); +} + void Queue::setPolicy(std::auto_ptr _policy) { policy = _policy; -- cgit v1.2.1