diff options
author | Gordon Sim <gsim@apache.org> | 2007-02-14 16:58:52 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-02-14 16:58:52 +0000 |
commit | 9cb1922884c5b258c961046e6fd48e5152aa79d5 (patch) | |
tree | 04662c38d1b70112619fe316e0b1de1d7de05f1c /cpp/lib/client/ClientQueue.h | |
parent | b4b64a31a12cfd7578baab35d5036169825b53c1 (diff) | |
download | qpid-python-9cb1922884c5b258c961046e6fd48e5152aa79d5.tar.gz |
Added durability property to queues and pass this to broker on declare. (This change also applied on trunk)
Minor update of accumulated ack and test.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@507622 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/client/ClientQueue.h')
-rw-r--r-- | cpp/lib/client/ClientQueue.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/cpp/lib/client/ClientQueue.h b/cpp/lib/client/ClientQueue.h index 6b7aaf7c41..b37a44b004 100644 --- a/cpp/lib/client/ClientQueue.h +++ b/cpp/lib/client/ClientQueue.h @@ -55,24 +55,25 @@ namespace client { std::string name; const bool autodelete; const bool exclusive; + bool durable; public: /** - * Creates an unnamed, temporary queue. A name will be - * assigned to this queue instance by a call to + * Creates an unnamed, non-durable, temporary queue. A name + * will be assigned to this queue instance by a call to * Channel::declareQueue(). */ Queue(); /** - * Creates a shared queue with a given name, that will not be - * autodeleted. + * Creates a shared, non-durable, queue with a given name, + * that will not be autodeleted. * * @param name the name of the queue */ Queue(std::string name); /** - * Creates a queue with a given name. + * Creates a non-durable queue with a given name. * * @param name the name of the queue * @@ -81,17 +82,19 @@ namespace client { */ Queue(std::string name, bool temp); /** - * This constructor allows the autodelete and exclusive - * propeties to be explictly set. Note however that if + * This constructor allows the autodelete, exclusive and + * durable propeties to be explictly set. Note however that if * exclusive is true, autodelete has no meaning as exclusive * queues are always destroyed when the connection that * created them is closed. */ - Queue(std::string name, bool autodelete, bool exclusive); + Queue(std::string name, bool autodelete, bool exclusive, bool durable); const std::string& getName() const; void setName(const std::string&); bool isAutoDelete() const; bool isExclusive() const; + bool isDurable() const; + void setDurable(bool durable); }; } |