summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/SubscriptionImpl.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-11-05 21:12:54 +0000
committerGordon Sim <gsim@apache.org>2008-11-05 21:12:54 +0000
commit359f60c318627900c3ac216496486c42d1a4df8a (patch)
tree879b78ce5d2cc1344f4840dbdbf83da66605ba47 /cpp/src/qpid/client/SubscriptionImpl.h
parent06c6c1db04d562b6cad0293cb4c5f8e40dde7a19 (diff)
downloadqpid-python-359f60c318627900c3ac216496486c42d1a4df8a.tar.gz
Added ability to release messages through the Subscription class (+test)
Added another mode for managing completion (+test) Fixed regression where bytes credit was not reallocated in windowing mode after an accept/release Fixed regression where subscribe request is issued before listener is registered with dispatcher git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711698 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/SubscriptionImpl.h')
-rw-r--r--cpp/src/qpid/client/SubscriptionImpl.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/SubscriptionImpl.h b/cpp/src/qpid/client/SubscriptionImpl.h
index 44fd1a7d6c..0c51b598c8 100644
--- a/cpp/src/qpid/client/SubscriptionImpl.h
+++ b/cpp/src/qpid/client/SubscriptionImpl.h
@@ -70,15 +70,21 @@ class SubscriptionImpl : public RefCounted, public MessageListener {
/** Acquire messageIds and remove them from the un-acquired set for the session. */
void acquire(const SequenceSet& messageIds);
- /** Accept messageIds and remove them from the un-acceptd set for the session. */
+ /** Accept messageIds and remove them from the un-accepted set for the session. */
void accept(const SequenceSet& messageIds);
+ /** Release messageIds and remove them from the un-accepted set for the session. */
+ void release(const SequenceSet& messageIds);
+
/** Get the session associated with this subscription */
Session getSession() const;
/** Get the subscription manager associated with this subscription */
SubscriptionManager& getSubscriptionManager() const;
+ /** Send subscription request and issue appropriate flow control commands. */
+ void subscribe();
+
/** Cancel the subscription. */
void cancel();