summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/BrokerQueue.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2006-12-05 17:43:00 +0000
committerGordon Sim <gsim@apache.org>2006-12-05 17:43:00 +0000
commit722b16a1a7bbde82a4cd82c99a0e29d31d0545ca (patch)
tree4866c7dc7e3e85a9f62ce6512ee1a569a4882e20 /cpp/lib/broker/BrokerQueue.h
parent96aa6c6e76ffa946192778d69d36d4c372a0de7b (diff)
downloadqpid-python-722b16a1a7bbde82a4cd82c99a0e29d31d0545ca.tar.gz
Allow settings to be set and persisted for queues.
Define policy based on these settings. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@482723 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/BrokerQueue.h')
-rw-r--r--cpp/lib/broker/BrokerQueue.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/lib/broker/BrokerQueue.h b/cpp/lib/broker/BrokerQueue.h
index 18befbee03..41611bebe9 100644
--- a/cpp/lib/broker/BrokerQueue.h
+++ b/cpp/lib/broker/BrokerQueue.h
@@ -66,7 +66,7 @@ namespace qpid {
int64_t lastUsed;
Consumer* exclusive;
mutable u_int64_t persistenceId;
- std::auto_ptr<QueuePolicy> policy;
+ std::auto_ptr<QueuePolicy> policy;
void pop();
void push(Message::shared_ptr& msg);
@@ -86,6 +86,7 @@ namespace qpid {
~Queue();
void create(const qpid::framing::FieldTable& settings);
+ void configure(const qpid::framing::FieldTable& settings);
void destroy();
/**
* Informs the queue of a binding that should be cancelled on
@@ -135,6 +136,8 @@ namespace qpid {
* dequeues from memory only
*/
Message::shared_ptr dequeue();
+
+ const QueuePolicy* const getPolicy();
};
}
}