From a08d54e27d4e91b52c5979cc566ab3e933878983 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Mon, 18 Oct 2010 19:36:13 +0000 Subject: Introduce broker::Cluster interface. See cpp/src/qpid/cluster/new-cluster-design.txt and new-cluster-plan.txt. qpid/cpp/src/tests/BrokerClusterCalls.cpp is a unit test that verifies the broker makes the expected calls on broker::Cluster in various situations. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1023966 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/Queue.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpp/src/qpid/broker/Queue.h') diff --git a/cpp/src/qpid/broker/Queue.h b/cpp/src/qpid/broker/Queue.h index 96c79d1b92..572f3dc0e2 100644 --- a/cpp/src/qpid/broker/Queue.h +++ b/cpp/src/qpid/broker/Queue.h @@ -259,6 +259,13 @@ class Queue : public boost::enable_shared_from_this, bool enqueue(TransactionContext* ctxt, boost::intrusive_ptr& msg, bool suppressPolicyCheck = false); void enqueueAborted(boost::intrusive_ptr msg); + + /** Message acknowledged, dequeue it. */ + QPID_BROKER_EXTERN void accept(TransactionContext* ctxt, const QueuedMessage &msg); + + /** Message rejected, dequeue it and re-route to alternate exchange if necessary. */ + QPID_BROKER_EXTERN void reject(const QueuedMessage &msg); + /** * dequeue from store (only done once messages is acknowledged) */ -- cgit v1.2.1