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 Constructor Description MessageEvictionStrategySupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEvictExpiredMessagesHighWatermark()REturns 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 RAM-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.broker.region.policy.MessageEvictionStrategy
evictMessages
-
-
-
-
Method Detail
-
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
-
-