summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/Subscription.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/client/Subscription.h')
-rw-r--r--cpp/src/qpid/client/Subscription.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/Subscription.h b/cpp/src/qpid/client/Subscription.h
index 2ed56d4e8a..b25a64a4a2 100644
--- a/cpp/src/qpid/client/Subscription.h
+++ b/cpp/src/qpid/client/Subscription.h
@@ -79,12 +79,20 @@ class Subscription : public Handle<SubscriptionImpl> {
*/
void accept(const SequenceSet& messageIds);
+ /** Release messageIds and remove them from the unaccepted set.
+ *@pre messageIds is a subset of getUnaccepted()
+ */
+ void release(const SequenceSet& messageIds);
+
/* Acquire a single message */
void acquire(const Message& m) { acquire(SequenceSet(m.getId())); }
/* Accept a single message */
void accept(const Message& m) { accept(SequenceSet(m.getId())); }
+ /* Release a single message */
+ void release(const Message& m) { release(SequenceSet(m.getId())); }
+
/** Get the session associated with this subscription */
Session getSession() const;