Class MessageEvictionStrategySupport
java.lang.Object
org.apache.activemq.broker.region.policy.MessageEvictionStrategySupport
- All Implemented Interfaces:
MessageEvictionStrategy
- Direct Known Subclasses:
OldestMessageEvictionStrategy,OldestMessageWithLowestPriorityEvictionStrategy,UniquePropertyMessageEvictionStrategy
public abstract class MessageEvictionStrategySupport
extends Object
implements MessageEvictionStrategy
A useful base class for implementation inheritence.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintREturns the high water mark on which we will eagerly evict expired messages from RAMvoidsetEvictExpiredMessagesHighWatermark(int evictExpiredMessagesHighWaterMark) Sets the high water mark on which we will eagerly evict expired messages from RAMMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.broker.region.policy.MessageEvictionStrategy
evictMessages
-
Constructor Details
-
MessageEvictionStrategySupport
public MessageEvictionStrategySupport()
-
-
Method Details
-
getEvictExpiredMessagesHighWatermark
public int getEvictExpiredMessagesHighWatermark()Description copied from interface:MessageEvictionStrategyREturns the high water mark on which we will eagerly evict expired messages from RAM- Specified by:
getEvictExpiredMessagesHighWatermarkin interfaceMessageEvictionStrategy
-
setEvictExpiredMessagesHighWatermark
public void setEvictExpiredMessagesHighWatermark(int evictExpiredMessagesHighWaterMark) Sets the high water mark on which we will eagerly evict expired messages from RAM
-