public interface JmsPrefetchPolicy
| Modifier and Type | Method and Description |
|---|---|
JmsPrefetchPolicy |
copy()
Copy this policy into a newly allocated instance.
|
int |
getConfiguredPrefetch(JmsSession session,
JmsDestination destination,
boolean durable,
boolean browser)
Returns the prefetch value to use when creating a MessageConsumer instance.
|
JmsPrefetchPolicy copy()
int getConfiguredPrefetch(JmsSession session, JmsDestination destination, boolean durable, boolean browser)
session - the Session that own the MessageConsumer being created. (null for a ConnectionConsumer).destination - the Destination that the consumer will be subscribed to.durable - indicates if the subscription being created is a durable subscription (Topics only).browser - indicates if the subscription being created is a message browser (Queues only).Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.