summaryrefslogtreecommitdiff
path: root/cpp/lib/client/ClientQueue.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-02-14 16:58:52 +0000
committerGordon Sim <gsim@apache.org>2007-02-14 16:58:52 +0000
commit9cb1922884c5b258c961046e6fd48e5152aa79d5 (patch)
tree04662c38d1b70112619fe316e0b1de1d7de05f1c /cpp/lib/client/ClientQueue.cpp
parentb4b64a31a12cfd7578baab35d5036169825b53c1 (diff)
downloadqpid-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.cpp')
-rw-r--r--cpp/lib/client/ClientQueue.cpp18
1 files changed, 13 insertions, 5 deletions
diff --git a/cpp/lib/client/ClientQueue.cpp b/cpp/lib/client/ClientQueue.cpp
index 455bb64d0b..773be504d8 100644
--- a/cpp/lib/client/ClientQueue.cpp
+++ b/cpp/lib/client/ClientQueue.cpp
@@ -20,14 +20,14 @@
*/
#include <ClientQueue.h>
-qpid::client::Queue::Queue() : name(""), autodelete(true), exclusive(true){}
+qpid::client::Queue::Queue() : name(""), autodelete(true), exclusive(true), durable(false){}
-qpid::client::Queue::Queue(std::string _name) : name(_name), autodelete(false), exclusive(false){}
+qpid::client::Queue::Queue(std::string _name) : name(_name), autodelete(false), exclusive(false), durable(false){}
-qpid::client::Queue::Queue(std::string _name, bool temp) : name(_name), autodelete(temp), exclusive(temp){}
+qpid::client::Queue::Queue(std::string _name, bool temp) : name(_name), autodelete(temp), exclusive(temp), durable(false){}
-qpid::client::Queue::Queue(std::string _name, bool _autodelete, bool _exclusive)
- : name(_name), autodelete(_autodelete), exclusive(_exclusive){}
+qpid::client::Queue::Queue(std::string _name, bool _autodelete, bool _exclusive, bool _durable)
+ : name(_name), autodelete(_autodelete), exclusive(_exclusive), durable(_durable){}
const std::string& qpid::client::Queue::getName() const{
return name;
@@ -45,6 +45,14 @@ bool qpid::client::Queue::isExclusive() const{
return exclusive;
}
+bool qpid::client::Queue::isDurable() const{
+ return durable;
+}
+
+void qpid::client::Queue::setDurable(bool _durable){
+ durable = _durable;
+}
+