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 Constructor Description StorePendingDurableSubscriberMessageStoragePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PendingMessageCursorgetSubscriberPendingMessageCursor(Broker broker, String clientId, String name, int maxBatchSize, DurableTopicSubscription sub)Retrieve the configured pending message storage cursor;booleanisImmediatePriorityDispatch()booleanisUseCache()voidsetImmediatePriorityDispatch(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)
-
-
-
Method Detail
-
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
-
-