diff options
author | Gordon Sim <gsim@apache.org> | 2007-09-12 14:49:12 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-09-12 14:49:12 +0000 |
commit | 813499376e288db736428c2eb6b4634dde40a34c (patch) | |
tree | 2384954ee541011507d9e5f72097a28d101bc489 /qpid/python/tests_0-10/example.py | |
parent | e5dcba2f7ee5ff71658532b7ac2f3ff47bf77db4 (diff) | |
download | qpid-python-813499376e288db736428c2eb6b4634dde40a34c.tar.gz |
In ClientChannel: Use subscribe and flush in place of get; use per-subscriber flow control for managing prefetches.
In brokers Session: set credit to 0 when subscription is created (modified python tests accordingly)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@574979 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/tests_0-10/example.py')
-rw-r--r-- | qpid/python/tests_0-10/example.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qpid/python/tests_0-10/example.py b/qpid/python/tests_0-10/example.py index e3e2c3b095..9dbe73e3cb 100644 --- a/qpid/python/tests_0-10/example.py +++ b/qpid/python/tests_0-10/example.py @@ -69,6 +69,8 @@ class ExampleTest (TestBase): # field that is filled if the reply includes content. In this case the # interesting field is the consumer_tag. channel.message_subscribe(queue="test-queue", destination="consumer_tag") + channel.message_flow(destination="consumer_tag", unit=0, value=0xFFFFFFFF) + channel.message_flow(destination="consumer_tag", unit=1, value=0xFFFFFFFF) # We can use the Client.queue(...) method to access the queue # corresponding to our consumer_tag. |