Class StorePendingDurableSubscriberMessageStoragePolicy
java.lang.Object
org.apache.activemq.broker.region.policy.StorePendingDurableSubscriberMessageStoragePolicy
- All Implemented Interfaces:
PendingDurableSubscriberMessageStoragePolicy
public class StorePendingDurableSubscriberMessageStoragePolicy
extends Object
implements PendingDurableSubscriberMessageStoragePolicy
Creates a PendingMessageCursor that access the persistent store to retrieve
messages
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSubscriberPendingMessageCursor(Broker broker, String clientId, String name, int maxBatchSize, DurableTopicSubscription sub) Retrieve the configured pending message storage cursor;booleanbooleanvoidsetImmediatePriorityDispatch(boolean immediatePriorityDispatch) Ensure that new higher priority messages will get an immediate dispatch rather than wait for the end of the current cursor batch.voidsetUseCache(boolean useCache)
-
Constructor Details
-
StorePendingDurableSubscriberMessageStoragePolicy
public StorePendingDurableSubscriberMessageStoragePolicy()
-
-
Method Details
-
isImmediatePriorityDispatch
public boolean isImmediatePriorityDispatch() -
setImmediatePriorityDispatch
public void setImmediatePriorityDispatch(boolean immediatePriorityDispatch) Ensure that new higher priority messages will get an immediate dispatch rather than wait for the end of the current cursor batch. Useful when there is a large message backlog and intermittent high priority messages.- Parameters:
immediatePriorityDispatch-
-
isUseCache
public boolean isUseCache() -
setUseCache
public void setUseCache(boolean useCache) -
getSubscriberPendingMessageCursor
public PendingMessageCursor getSubscriberPendingMessageCursor(Broker broker, String clientId, String name, int maxBatchSize, DurableTopicSubscription sub) Retrieve the configured pending message storage cursor;- Specified by:
getSubscriberPendingMessageCursorin interfacePendingDurableSubscriberMessageStoragePolicy- Parameters:
broker-clientId-name-maxBatchSize-sub-- Returns:
- the Pending Message cursor
-