From cea30bd45679ae39de64cb93e25d914abc937ba0 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 6 Apr 2010 19:08:28 +0000 Subject: 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 --- cpp/include/qpid/messaging/Session.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cpp/include') 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 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(); -- cgit v1.2.1