summaryrefslogtreecommitdiff
path: root/cpp/include/qpid/messaging/Session.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-04-06 19:08:28 +0000
committerGordon Sim <gsim@apache.org>2010-04-06 19:08:28 +0000
commitcea30bd45679ae39de64cb93e25d914abc937ba0 (patch)
treebe972f36e5abea1b17bf5cd85fba403f6f934eaa /cpp/include/qpid/messaging/Session.h
parent4517306f15bb760814a75797f4b229132114ff6d (diff)
downloadqpid-python-cea30bd45679ae39de64cb93e25d914abc937ba0.tar.gz
QPID-664: added method to release messages
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@931275 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include/qpid/messaging/Session.h')
-rw-r--r--cpp/include/qpid/messaging/Session.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/include/qpid/messaging/Session.h b/cpp/include/qpid/messaging/Session.h
index 9b373e2d8b..c20de9079b 100644
--- a/cpp/include/qpid/messaging/Session.h
+++ b/cpp/include/qpid/messaging/Session.h
@@ -78,9 +78,16 @@ class Session : public qpid::messaging::Handle<SessionImpl>
QPID_CLIENT_EXTERN void acknowledge(bool sync=false);
/**
* Rejects the specified message. This will prevent the message
- * being redelivered.
+ * being redelivered. This must be called before the message is
+ * acknowledged.
*/
QPID_CLIENT_EXTERN void reject(Message&);
+ /**
+ * Releases the specified message. This will allow the broker to
+ * redeliver the message. This must be called before the message
+ * is acknowledged.
+ */
+ QPID_CLIENT_EXTERN void release(Message&);
QPID_CLIENT_EXTERN void sync();
QPID_CLIENT_EXTERN void flush();