Use more sensible prefetch settings.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1408919 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2012-11-13 19:49:48 +00:00
parent 8387295ade
commit 914e177239
1 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ class AmqpProtocolConverter {
// private CONNECT connect;
// private String clientId;
// private final String QOS_PROPERTY_NAME = "QoSPropertyName";
int prefetch = 100;
TransportImpl protonTransport = new TransportImpl();
ConnectionImpl protonConnection = new ConnectionImpl();
@ -615,7 +615,7 @@ class AmqpProtocolConverter {
if( remoteTarget instanceof Coordinator ) {
pumpProtonToSocket();
receiver.setContext(coordinatorContext);
receiver.flow(1024 * 64);
receiver.flow(prefetch);
receiver.open();
pumpProtonToSocket();
} else {
@ -635,7 +635,7 @@ class AmqpProtocolConverter {
ProducerContext producerContext = new ProducerContext(producerId, dest);
receiver.setContext(producerContext);
receiver.flow(1024 * 64);
receiver.flow(prefetch);
ProducerInfo producerInfo = new ProducerInfo(producerId);
producerInfo.setDestination(dest);
sendToActiveMQ(producerInfo, new ResponseHandler() {