mirror of https://github.com/apache/activemq.git
Enable optimized ack by default again but disable the broker from sending the prefetch resize command to the client.. the client still has not implemented proper thread safe handling for that.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@399530 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
84bee771f8
commit
c6e0984e1d
|
@ -82,7 +82,7 @@ public class ActiveMQConnectionFactory extends JNDIBaseStorable implements Conne
|
|||
protected boolean asyncDispatch = false;
|
||||
protected boolean alwaysSessionAsync=true;
|
||||
private boolean useAsyncSend = false;
|
||||
private boolean optimizeAcknowledge = false;
|
||||
private boolean optimizeAcknowledge = true;
|
||||
private int closeTimeout = 15000;
|
||||
private boolean useRetroactiveConsumer;
|
||||
|
||||
|
|
|
@ -251,6 +251,7 @@ abstract public class PrefetchSubscription extends AbstractSubscription{
|
|||
*
|
||||
*/
|
||||
public void optimizePrefetch(){
|
||||
/*
|
||||
if(info!=null&&info.isOptimizedAcknowledge()&&context!=null&&context.getConnection()!=null
|
||||
&&context.getConnection().isManageable()){
|
||||
if(info.getCurrentPrefetchSize()!=info.getPrefetchSize() && isLowWaterMark()){
|
||||
|
@ -262,6 +263,7 @@ abstract public class PrefetchSubscription extends AbstractSubscription{
|
|||
updateConsumerPrefetch(1);
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -271,6 +271,7 @@ public class TopicSubscription extends AbstractSubscription{
|
|||
*
|
||||
*/
|
||||
public void optimizePrefetch(){
|
||||
/*
|
||||
if(info!=null&&info.isOptimizedAcknowledge()&&context!=null&&context.getConnection()!=null
|
||||
&&context.getConnection().isManageable()){
|
||||
if(info.getCurrentPrefetchSize()!=info.getPrefetchSize() && isLowWaterMark()){
|
||||
|
@ -282,6 +283,7 @@ public class TopicSubscription extends AbstractSubscription{
|
|||
updateConsumerPrefetch(1);
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
private void dispatchMatched() throws IOException{
|
||||
|
|
Loading…
Reference in New Issue