summaryrefslogtreecommitdiff
path: root/python/qpid
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-09-03 17:35:35 +0000
committerGordon Sim <gsim@apache.org>2007-09-03 17:35:35 +0000
commit331b0e84ae06da0c057a82c0f5b67f550bcd636b (patch)
tree91342743f16ad473b456a5ef336409e4af38cd5a /python/qpid
parentcadb67eb27e00abb493793363dcf37f4d2f563dc (diff)
downloadqpid-python-331b0e84ae06da0c057a82c0f5b67f550bcd636b.tar.gz
Initial implementation (plus very simple tests) of message.acquire, message.release, message.reject and message.flush.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@572394 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid')
-rw-r--r--python/qpid/client.py3
-rw-r--r--python/qpid/peer.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/python/qpid/client.py b/python/qpid/client.py
index edcd1b8ad2..5734873c6f 100644
--- a/python/qpid/client.py
+++ b/python/qpid/client.py
@@ -126,6 +126,9 @@ class ClientDelegate(Delegate):
def message_append(self, ch, msg):
ch.references.get(msg.reference).append(msg.bytes)
+ def message_acquired(self, ch, msg):
+ ch.control_queue.put(msg)
+
def basic_deliver(self, ch, msg):
self.client.queue(msg.consumer_tag).put(msg)
diff --git a/python/qpid/peer.py b/python/qpid/peer.py
index 6ad5482f09..b9dd4e466a 100644
--- a/python/qpid/peer.py
+++ b/python/qpid/peer.py
@@ -190,6 +190,7 @@ class Channel:
self.completion = OutgoingCompletion()
self.incoming_completion = IncomingCompletion(self)
self.futures = {}
+ self.control_queue = Queue(0)#used for incoming methods that appas may want to handle themselves
# Use reliable framing if version == 0-9.
if spec.major == 0 and spec.minor == 9: