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:
Bosanac Dejan 2012-08-28 10:17:58 +00:00
parent 9b0316b9b4
commit 00bdf0044a
2 changed files with 21 additions and 0 deletions

View File

@ -251,6 +251,10 @@ public class ActiveMQConnectionRequestInfo implements ConnectionRequestInfo, Ser
return Integer.valueOf(prefetchPolicy().getDurableTopicPrefetch()); return Integer.valueOf(prefetchPolicy().getDurableTopicPrefetch());
} }
public Integer getOptimizeDurableTopicPrefetch() {
return Integer.valueOf(prefetchPolicy().getOptimizeDurableTopicPrefetch());
}
public Integer getInputStreamPrefetch() { public Integer getInputStreamPrefetch() {
return Integer.valueOf(prefetchPolicy().getInputStreamPrefetch()); return Integer.valueOf(prefetchPolicy().getInputStreamPrefetch());
} }

View File

@ -208,6 +208,23 @@ public class ActiveMQConnectionSupport {
return info.getDurableTopicPrefetch(); 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 * @param durableTopicPrefetch
*/ */