diff options
author | Rafael H. Schloming <rhs@apache.org> | 2008-06-11 21:31:12 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2008-06-11 21:31:12 +0000 |
commit | 5652a1f2c2c1ccab95086494a811e00b24a700cd (patch) | |
tree | 29dcdcaf9eb2bffb1f3f22b228d02737777a6bbe /python/examples/direct/direct_consumer.py | |
parent | 1bc8bc59f5221cb5b1607e1b5eff34ad312a77fa (diff) | |
download | qpid-python-5652a1f2c2c1ccab95086494a811e00b24a700cd.tar.gz |
replaced example usages of message_flow with the start() method
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@666850 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/examples/direct/direct_consumer.py')
-rwxr-xr-x | python/examples/direct/direct_consumer.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/python/examples/direct/direct_consumer.py b/python/examples/direct/direct_consumer.py index e421a417c1..23577e9f53 100755 --- a/python/examples/direct/direct_consumer.py +++ b/python/examples/direct/direct_consumer.py @@ -51,11 +51,10 @@ queue = session.incoming(local_queue_name) # Call message_subscribe() to tell the broker to deliver messages # from the AMQP queue to this local client queue. The broker will # start delivering messages as soon as credit is allocated using -# session.message_flow(). +# queue.start(). session.message_subscribe(queue="message_queue", destination=local_queue_name) -session.message_flow(local_queue_name, session.credit_unit.message, 0xFFFFFFFF) -session.message_flow(local_queue_name, session.credit_unit.byte, 0xFFFFFFFF) +queue.start() # Initialize 'final' and 'content', variables used to identify the last message. |