diff options
| author | Gordon Sim <gsim@apache.org> | 2010-04-06 19:08:28 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2010-04-06 19:08:28 +0000 |
| commit | 24816ab849015f212eb49963c3e08b99dfa700fe (patch) | |
| tree | 508d0b53cd6a817417c4de029a7a2fb39d94d922 /qpid/cpp/include | |
| parent | 0e4a47f12834b203a77b9802afa919a562062114 (diff) | |
| download | qpid-python-24816ab849015f212eb49963c3e08b99dfa700fe.tar.gz | |
QPID-664: added method to release messages
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@931275 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include')
| -rw-r--r-- | qpid/cpp/include/qpid/messaging/Session.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/qpid/cpp/include/qpid/messaging/Session.h b/qpid/cpp/include/qpid/messaging/Session.h index 9b373e2d8b..c20de9079b 100644 --- a/qpid/cpp/include/qpid/messaging/Session.h +++ b/qpid/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(); |
