|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.broker.region.policy.MessageEvictionStrategySupport
org.apache.activemq.broker.region.policy.OldestMessageWithLowestPriorityEvictionStrategy
public class OldestMessageWithLowestPriorityEvictionStrategy
An eviction strategy which evicts the oldest message with the lowest priority first.
Constructor Summary | |
---|---|
OldestMessageWithLowestPriorityEvictionStrategy()
|
Method Summary | |
---|---|
MessageReference[] |
evictMessages(java.util.LinkedList messages)
Find the message reference in the given list with oldest messages at the front and newer messages at the end |
Methods inherited from class org.apache.activemq.broker.region.policy.MessageEvictionStrategySupport |
---|
getEvictExpiredMessagesHighWatermark, setEvictExpiredMessagesHighWatermark |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OldestMessageWithLowestPriorityEvictionStrategy()
Method Detail |
---|
public MessageReference[] evictMessages(java.util.LinkedList messages) throws java.io.IOException
MessageEvictionStrategy
java.io.IOException
- if an exception occurs such as reading a message content (but should not ever happen
as usually all the messages will be in RAM when this method is called).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |