public class JmsPrefetchPolicy extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DURABLE_TOPIC_PREFETCH |
static int |
DEFAULT_QUEUE_BROWSER_PREFETCH |
static int |
DEFAULT_QUEUE_PREFETCH |
static int |
DEFAULT_TOPIC_PREFETCH |
static int |
MAX_PREFETCH_SIZE |
Constructor and Description |
---|
JmsPrefetchPolicy()
Initialize default prefetch policies
|
JmsPrefetchPolicy(JmsPrefetchPolicy source)
Creates a new JmsPrefetchPolicy instance copied from the source policy.
|
Modifier and Type | Method and Description |
---|---|
JmsPrefetchPolicy |
copy()
Copy this policy into a newly allocated instance.
|
boolean |
equals(Object obj) |
int |
getDurableTopicPrefetch() |
int |
getMaxPrefetchSize()
Gets the currently configured max prefetch size value.
|
int |
getQueueBrowserPrefetch() |
int |
getQueuePrefetch() |
int |
getTopicPrefetch() |
int |
hashCode() |
void |
setAll(int prefetch)
Sets the prefetch values for all options in this policy to the set limit.
|
void |
setDurableTopicPrefetch(int durableTopicPrefetch)
Sets the durable topic prefetch value, this value is limited by the max
prefetch size setting.
|
void |
setMaxPrefetchSize(int maxPrefetchSize)
Sets the maximum prefetch size value.
|
void |
setQueueBrowserPrefetch(int queueBrowserPrefetch) |
void |
setQueuePrefetch(int queuePrefetch) |
void |
setTopicPrefetch(int topicPrefetch) |
public static final int MAX_PREFETCH_SIZE
public static final int DEFAULT_QUEUE_PREFETCH
public static final int DEFAULT_QUEUE_BROWSER_PREFETCH
public static final int DEFAULT_DURABLE_TOPIC_PREFETCH
public static final int DEFAULT_TOPIC_PREFETCH
public JmsPrefetchPolicy()
public JmsPrefetchPolicy(JmsPrefetchPolicy source)
source
- The policy instance to copy values from.public JmsPrefetchPolicy copy()
public int getDurableTopicPrefetch()
public void setDurableTopicPrefetch(int durableTopicPrefetch)
durableTopicPrefetch
- The durableTopicPrefetch to set.public int getQueuePrefetch()
public void setQueuePrefetch(int queuePrefetch)
queuePrefetch
- The queuePrefetch to set.public int getQueueBrowserPrefetch()
public void setQueueBrowserPrefetch(int queueBrowserPrefetch)
queueBrowserPrefetch
- The queueBrowserPrefetch to set.public int getTopicPrefetch()
public void setTopicPrefetch(int topicPrefetch)
topicPrefetch
- The topicPrefetch to set.public int getMaxPrefetchSize()
public void setMaxPrefetchSize(int maxPrefetchSize)
maxPrefetchSize
- The maximum allowed value for any of the prefetch size options.public void setAll(int prefetch)
prefetch
- The prefetch value to apply to all prefetch limits.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.