public class OldestMessageWithLowestPriorityEvictionStrategy extends MessageEvictionStrategySupport
| Constructor and Description |
|---|
OldestMessageWithLowestPriorityEvictionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.activemq.broker.region.MessageReference[] |
evictMessages(LinkedList messages)
Find the message reference in the given list with oldest messages at the front and newer messages at the end
|
getEvictExpiredMessagesHighWatermark, setEvictExpiredMessagesHighWatermarkpublic OldestMessageWithLowestPriorityEvictionStrategy()
public org.apache.activemq.broker.region.MessageReference[] evictMessages(LinkedList messages) throws IOException
MessageEvictionStrategyIOException - 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).Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.