diff options
| author | Alan Conway <aconway@apache.org> | 2013-12-13 19:30:01 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2013-12-13 19:30:01 +0000 |
| commit | 50593c783fbcf9e85ae11152f159a7545beb0647 (patch) | |
| tree | 6e08bec12c899a8e8b69b607956701612f2e8562 /cpp/src/qpid/broker/QueueFactory.cpp | |
| parent | 7092d3934f79fcf1bb2d005437aee2f66064b2a3 (diff) | |
| download | qpid-python-50593c783fbcf9e85ae11152f159a7545beb0647.tar.gz | |
QPID-5421: Refactor: clean up QueueObservers.
Refactor of queue observers to use the broker::Observers base class. Simplifies Queue code
and makes it more consistent with other observers (BrokerObservers, ConnectionObservers.)
Modified Observers base class to allow identical locking behaviour to previous
impementation.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1550818 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/QueueFactory.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/QueueFactory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/QueueFactory.cpp b/cpp/src/qpid/broker/QueueFactory.cpp index e5d9431555..d31b120cae 100644 --- a/cpp/src/qpid/broker/QueueFactory.cpp +++ b/cpp/src/qpid/broker/QueueFactory.cpp @@ -90,7 +90,7 @@ boost::shared_ptr<Queue> QueueFactory::create(const std::string& name, const Que if (settings.groupKey.size()) { boost::shared_ptr<MessageGroupManager> mgm(MessageGroupManager::create( name, *(queue->messages), settings)); queue->allocator = mgm; - queue->addObserver(mgm); + queue->getObservers().add(mgm); } else { queue->allocator = boost::shared_ptr<MessageDistributor>(new FifoDistributor( *(queue->messages) )); } |
