Save This Page
Home » activemq-parent-5.3.1-source-release » org.apache » activemq » broker » region » policy » [javadoc | source]
org.apache.activemq.broker.region.policy
public interface: MessageEvictionStrategy [javadoc | source]

All Known Implementing Classes:
    MessageEvictionStrategySupport, OldestMessageWithLowestPriorityEvictionStrategy, OldestMessageEvictionStrategy

A strategy for evicting messages from slow consumers.
Method from org.apache.activemq.broker.region.policy.MessageEvictionStrategy Summary:
evictMessages,   getEvictExpiredMessagesHighWatermark
Method from org.apache.activemq.broker.region.policy.MessageEvictionStrategy Detail:
 public MessageReference[] evictMessages(LinkedList messages) throws IOException
    Find the message reference in the given list with oldest messages at the front and newer messages at the end
 public int getEvictExpiredMessagesHighWatermark()
    REturns the high water mark on which we will eagerly evict expired messages from RAM