diff options
author | Rafael H. Schloming <rhs@apache.org> | 2010-03-11 00:03:25 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2010-03-11 00:03:25 +0000 |
commit | 88086e0099c0fb67ac3a01c5f8793c0634b946a0 (patch) | |
tree | 7fab04466df2bb9e33e9e83ccc3286a420f0ee0d /python/qpid/messaging/endpoints.py | |
parent | 195193dab20a2e7481e470ddc8226cff9102e1fb (diff) | |
download | qpid-python-88086e0099c0fb67ac3a01c5f8793c0634b946a0.tar.gz |
added support for reject/release
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@921638 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/messaging/endpoints.py')
-rw-r--r-- | python/qpid/messaging/endpoints.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/qpid/messaging/endpoints.py b/python/qpid/messaging/endpoints.py index 004cee5f88..53df51dfd8 100644 --- a/python/qpid/messaging/endpoints.py +++ b/python/qpid/messaging/endpoints.py @@ -508,7 +508,7 @@ class Session: raise Empty @synchronized - def acknowledge(self, message=None, sync=True): + def acknowledge(self, message=None, disposition=None, sync=True): """ Acknowledge the given L{Message}. If message is None, then all unacknowledged messages on the session are acknowledged. @@ -530,6 +530,7 @@ class Session: raise InsufficientCapacity("ack_capacity = %s" % self.ack_capacity) self._wakeup() self._ewait(lambda: len(self.acked) < self.ack_capacity) + m._disposition = disposition self.unacked.remove(m) self.acked.append(m) |