mirror of https://github.com/apache/activemq.git
fine tuning
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@395256 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5c7f4b626b
commit
2c64bf99d9
|
@ -625,7 +625,7 @@ public class ActiveMQMessageConsumer implements MessageAvailableConsumer, StatsC
|
|||
if(optimizeAcknowledge){
|
||||
if(deliveryingAcknowledgements.compareAndSet(false,true)){
|
||||
ackCounter++;
|
||||
if(ackCounter>=(info.getCurrentPrefetchSize()*.75)){
|
||||
if(ackCounter>=(info.getCurrentPrefetchSize()*.50)){
|
||||
MessageAck ack=new MessageAck(md,MessageAck.STANDARD_ACK_TYPE,deliveredMessages.size());
|
||||
session.asyncSendPacket(ack);
|
||||
ackCounter=0;
|
||||
|
|
Loading…
Reference in New Issue