summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/Consumer.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-09-03 17:35:35 +0000
committerGordon Sim <gsim@apache.org>2007-09-03 17:35:35 +0000
commit331b0e84ae06da0c057a82c0f5b67f550bcd636b (patch)
tree91342743f16ad473b456a5ef336409e4af38cd5a /cpp/src/qpid/broker/Consumer.h
parentcadb67eb27e00abb493793363dcf37f4d2f563dc (diff)
downloadqpid-python-331b0e84ae06da0c057a82c0f5b67f550bcd636b.tar.gz
Initial implementation (plus very simple tests) of message.acquire, message.release, message.reject and message.flush.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@572394 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Consumer.h')
-rw-r--r--cpp/src/qpid/broker/Consumer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/Consumer.h b/cpp/src/qpid/broker/Consumer.h
index 52da25082c..c482a44ab1 100644
--- a/cpp/src/qpid/broker/Consumer.h
+++ b/cpp/src/qpid/broker/Consumer.h
@@ -36,8 +36,13 @@ namespace qpid {
};
- class Consumer{
+ class Consumer {
+ const bool acquires;
public:
+ framing::SequenceNumber position;
+
+ Consumer(bool preAcquires = true) : acquires(preAcquires) {}
+ bool preAcquires() const { return acquires; }
virtual bool deliver(QueuedMessage& msg) = 0;
virtual ~Consumer(){}
};