summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/Queue.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2011-02-15 18:58:44 +0000
committerGordon Sim <gsim@apache.org>2011-02-15 18:58:44 +0000
commit592f2a9bc018b61ec5c0280907e0bb7628ad8fa4 (patch)
tree69345a6309a70479bde23c2371fced7d428e8037 /cpp/src/qpid/broker/Queue.h
parent09a2d7a8ed555ff292fb7dac706f13c643d323ea (diff)
downloadqpid-python-592f2a9bc018b61ec5c0280907e0bb7628ad8fa4.tar.gz
QPID-3000: Added optional delay for auto-deletion
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1071013 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Queue.h')
-rw-r--r--cpp/src/qpid/broker/Queue.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/Queue.h b/cpp/src/qpid/broker/Queue.h
index 664b1e0f01..12a3d273be 100644
--- a/cpp/src/qpid/broker/Queue.h
+++ b/cpp/src/qpid/broker/Queue.h
@@ -36,6 +36,7 @@
#include "qpid/framing/FieldTable.h"
#include "qpid/sys/Monitor.h"
+#include "qpid/sys/Timer.h"
#include "qpid/management/Manageable.h"
#include "qmf/org/apache/qpid/broker/Queue.h"
#include "qpid/framing/amqp_types.h"
@@ -126,6 +127,8 @@ class Queue : public boost::enable_shared_from_this<Queue>,
Broker* broker;
bool deleted;
UsageBarrier barrier;
+ int autoDeleteTimeout;
+ boost::intrusive_ptr<qpid::sys::TimerTask> autoDeleteTask;
void push(boost::intrusive_ptr<Message>& msg, bool isRecovery=false);
void setPolicy(std::auto_ptr<QueuePolicy> policy);