From 685aad458c485cd260df694f58d2f7641ce94e32 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 11 Oct 2007 13:29:37 +0000 Subject: Exclusive no longer implies auto-delete on queue.declare. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@583821 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/Queue.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/broker/Queue.h') diff --git a/cpp/src/qpid/broker/Queue.h b/cpp/src/qpid/broker/Queue.h index 17ace522c3..7ee9106ef0 100644 --- a/cpp/src/qpid/broker/Queue.h +++ b/cpp/src/qpid/broker/Queue.h @@ -67,7 +67,7 @@ namespace qpid { const string name; const bool autodelete; MessageStore* const store; - const ConnectionToken* const owner; + const ConnectionToken* owner; Consumers acquirers; Consumers browsers; Messages messages; @@ -155,6 +155,8 @@ namespace qpid { uint32_t getConsumerCount() const; inline const string& getName() const { return name; } inline const bool isExclusiveOwner(const ConnectionToken* const o) const { return o == owner; } + inline void releaseExclusiveOwnership() { owner = 0; } + inline void setExclusiveOwner(const ConnectionToken* const o) { owner = o; } inline bool hasExclusiveConsumer() const { return exclusive; } inline bool hasExclusiveOwner() const { return owner != 0; } inline bool isDurable() const { return store != 0; } -- cgit v1.2.1