summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Simon <arnaudsimon@apache.org>2007-09-10 14:12:14 +0000
committerArnaud Simon <arnaudsimon@apache.org>2007-09-10 14:12:14 +0000
commitdcc167703ad9284863ac9a319b7c285e71f13672 (patch)
tree42eff23ecd8abb648e472a6d3954fe6c5b1fe063
parent59cd091a7710e0b6306694e686da349c9117a672 (diff)
downloadqpid-python-dcc167703ad9284863ac9a319b7c285e71f13672.tar.gz
added message flow mode window
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@574255 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java b/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
index e1e32edef8..e4318f4c0d 100644
--- a/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
+++ b/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
@@ -306,9 +306,10 @@ public class AMQSession_0_10 extends AMQSession
{
getQpidSession().messageSubscribe(queueName.toString(), tag.toString(), Session.TRANSFER_CONFIRM_MODE_REQUIRED,
Session.TRANSFER_ACQUIRE_MODE_PRE_ACQUIRE,
- new MessagePartListenerAdapter((BasicMessageConsumer_0_10) consumer),
- null, consumer.isNoLocal() ? Option.NO_LOCAL : Option.NO_OPTION,
+ new MessagePartListenerAdapter((BasicMessageConsumer_0_10) consumer), null,
+ consumer.isNoLocal() ? Option.NO_LOCAL : Option.NO_OPTION,
consumer.isExclusive() ? Option.EXCLUSIVE : Option.NO_OPTION);
+ getQpidSession().messageFlowMode(tag.toString(), Session.MESSAGE_FLOW_MODE_WINDOW);
// We need to sync so that we get notify of an error.
getQpidSession().sync();
getCurrentException();