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(optimizeAcknowledge){
|
||||||
if(deliveryingAcknowledgements.compareAndSet(false,true)){
|
if(deliveryingAcknowledgements.compareAndSet(false,true)){
|
||||||
ackCounter++;
|
ackCounter++;
|
||||||
if(ackCounter>=(info.getCurrentPrefetchSize()*.75)){
|
if(ackCounter>=(info.getCurrentPrefetchSize()*.50)){
|
||||||
MessageAck ack=new MessageAck(md,MessageAck.STANDARD_ACK_TYPE,deliveredMessages.size());
|
MessageAck ack=new MessageAck(md,MessageAck.STANDARD_ACK_TYPE,deliveredMessages.size());
|
||||||
session.asyncSendPacket(ack);
|
session.asyncSendPacket(ack);
|
||||||
ackCounter=0;
|
ackCounter=0;
|
||||||
|
|
Loading…
Reference in New Issue