mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-3986 - optimizeDurablePrefetch on ActiveMQConnectionSupport
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1378057 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9b0316b9b4
commit
00bdf0044a
|
@ -251,6 +251,10 @@ public class ActiveMQConnectionRequestInfo implements ConnectionRequestInfo, Ser
|
|||
return Integer.valueOf(prefetchPolicy().getDurableTopicPrefetch());
|
||||
}
|
||||
|
||||
public Integer getOptimizeDurableTopicPrefetch() {
|
||||
return Integer.valueOf(prefetchPolicy().getOptimizeDurableTopicPrefetch());
|
||||
}
|
||||
|
||||
public Integer getInputStreamPrefetch() {
|
||||
return Integer.valueOf(prefetchPolicy().getInputStreamPrefetch());
|
||||
}
|
||||
|
|
|
@ -208,6 +208,23 @@ public class ActiveMQConnectionSupport {
|
|||
return info.getDurableTopicPrefetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param optimizeDurableTopicPrefetch
|
||||
*/
|
||||
public void setOptimizeDurableTopicPrefetch(Integer optimizeDurableTopicPrefetch) {
|
||||
if ( log.isDebugEnabled() ) {
|
||||
log.debug("setting [optimizeDurableTopicPrefetch] to: " + optimizeDurableTopicPrefetch);
|
||||
}
|
||||
info.setOptimizeDurableTopicPrefetch(optimizeDurableTopicPrefetch);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return durable topic prefetch
|
||||
*/
|
||||
public Integer getOptimizeDurableTopicPrefetch() {
|
||||
return info.getOptimizeDurableTopicPrefetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param durableTopicPrefetch
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue