Class OldestMessageEvictionStrategy
- java.lang.Object
- 
- org.apache.activemq.broker.region.policy.MessageEvictionStrategySupport
- 
- org.apache.activemq.broker.region.policy.OldestMessageEvictionStrategy
 
 
- 
- All Implemented Interfaces:
- MessageEvictionStrategy
 
 public class OldestMessageEvictionStrategy extends MessageEvictionStrategySupport An eviction strategy which evicts the oldest message first (which is the default).
- 
- 
Constructor SummaryConstructors Constructor Description OldestMessageEvictionStrategy()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageReference[]evictMessages(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.MessageEvictionStrategySupportgetEvictExpiredMessagesHighWatermark, setEvictExpiredMessagesHighWatermark
 
- 
 
- 
- 
- 
Method Detail- 
evictMessagespublic MessageReference[] evictMessages(LinkedList messages) Description copied from interface:MessageEvictionStrategyFind the message reference in the given list with oldest messages at the front and newer messages at the end- Returns:
- the message that has been evicted.
 
 
- 
 
-