diff options
| author | Gordon Sim <gsim@apache.org> | 2008-03-17 12:17:55 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-03-17 12:17:55 +0000 |
| commit | 6574ab48665039ae9b8b1d2c5dd26ea94a3d23fa (patch) | |
| tree | 01091458f1db56d09953cd129305586057df1384 /cpp/src/qpid/broker/Queue.h | |
| parent | 1c1efeddef24ef18d75af65e4249b541b1382ea8 (diff) | |
| download | qpid-python-6574ab48665039ae9b8b1d2c5dd26ea94a3d23fa.tar.gz | |
Scope exclusive queues to sessions.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@637854 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Queue.h')
| -rw-r--r-- | cpp/src/qpid/broker/Queue.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/qpid/broker/Queue.h b/cpp/src/qpid/broker/Queue.h index aaae175be8..bd6f1fe2c7 100644 --- a/cpp/src/qpid/broker/Queue.h +++ b/cpp/src/qpid/broker/Queue.h @@ -28,7 +28,7 @@ #include <boost/shared_ptr.hpp> #include <boost/enable_shared_from_this.hpp> #include "qpid/framing/amqp_types.h" -#include "ConnectionToken.h" +#include "OwnershipToken.h" #include "Consumer.h" #include "Message.h" #include "qpid/framing/FieldTable.h" @@ -63,7 +63,7 @@ namespace qpid { const string name; const bool autodelete; MessageStore* store; - const ConnectionToken* owner; + const OwnershipToken* owner; uint32_t consumerCount; bool exclusive; Listeners listeners; @@ -100,7 +100,7 @@ namespace qpid { Queue(const string& name, bool autodelete = false, MessageStore* const store = 0, - const ConnectionToken* const owner = 0, + const OwnershipToken* const owner = 0, Manageable* parent = 0); ~Queue(); @@ -143,9 +143,9 @@ namespace qpid { uint32_t getMessageCount() const; uint32_t getConsumerCount() const; inline const string& getName() const { return name; } - bool isExclusiveOwner(const ConnectionToken* const o) const; + bool isExclusiveOwner(const OwnershipToken* const o) const; void releaseExclusiveOwnership(); - bool setExclusiveOwner(const ConnectionToken* const o); + bool setExclusiveOwner(const OwnershipToken* const o); bool hasExclusiveConsumer() const; bool hasExclusiveOwner() const; inline bool isDurable() const { return store != 0; } |
