diff options
author | Gordon Sim <gsim@apache.org> | 2009-01-23 14:08:42 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2009-01-23 14:08:42 +0000 |
commit | 2deb4832b4894bb2a5123daaffd54d6da652fae3 (patch) | |
tree | 94e4274601cb9eb8c70b6ddd73dd100ccca436ca /cpp/src/qpid/client/SubscriptionImpl.cpp | |
parent | d7ce27f7cc96894f149e5c20c03b306b80636727 (diff) | |
download | qpid-python-2deb4832b4894bb2a5123daaffd54d6da652fae3.tar.gz |
QPID-1613: Ensure that the rule registered with the demuxer for LocalQueue subscriptions is removed when they are cancelled.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@737028 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/SubscriptionImpl.cpp')
-rw-r--r-- | cpp/src/qpid/client/SubscriptionImpl.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/SubscriptionImpl.cpp b/cpp/src/qpid/client/SubscriptionImpl.cpp index 5ea87110c2..e09a4c142e 100644 --- a/cpp/src/qpid/client/SubscriptionImpl.cpp +++ b/cpp/src/qpid/client/SubscriptionImpl.cpp @@ -145,5 +145,15 @@ void SubscriptionImpl::received(Message& m) { } } +Demux::QueuePtr SubscriptionImpl::divert() +{ + demuxRule = std::auto_ptr<ScopedDivert>(new ScopedDivert(name, manager.getSession().getExecution().getDemux())); + return demuxRule->getQueue(); +} + +void SubscriptionImpl::cancelDiversion() { + demuxRule.reset(); +} + }} // namespace qpid::client |