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

All Known Implementing Classes:
    MessageEvictionStrategySupport, OldestMessageWithLowestPriorityEvictionStrategy, OldestMessageEvictionStrategy

A strategy for evicting messages from slow consumers.
Method from Summary:
evictMessages,   getEvictExpiredMessagesHighWatermark
Method from 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