Make the max value actually be Short.MAX_VALUE

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1174954 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2011-09-23 18:58:55 +00:00
parent ca90cc7b8c
commit fef66a6e98
1 changed files with 7 additions and 6 deletions

View File

@ -26,8 +26,9 @@ import org.slf4j.LoggerFactory;
* @org.apache.xbean.XBean element="prefetchPolicy" * @org.apache.xbean.XBean element="prefetchPolicy"
* *
*/ */
@SuppressWarnings("serial")
public class ActiveMQPrefetchPolicy extends Object implements Serializable { public class ActiveMQPrefetchPolicy extends Object implements Serializable {
public static final int MAX_PREFETCH_SIZE = Short.MAX_VALUE - 1; public static final int MAX_PREFETCH_SIZE = Short.MAX_VALUE;
public static final int DEFAULT_QUEUE_PREFETCH = 1000; public static final int DEFAULT_QUEUE_PREFETCH = 1000;
public static final int DEFAULT_QUEUE_BROWSER_PREFETCH = 500; public static final int DEFAULT_QUEUE_BROWSER_PREFETCH = 500;
public static final int DEFAULT_DURABLE_TOPIC_PREFETCH = 100; public static final int DEFAULT_DURABLE_TOPIC_PREFETCH = 100;