org.apache.activemq.broker.region.policy
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).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OldestMessageEvictionStrategy
public OldestMessageEvictionStrategy()
evictMessages
public MessageReference[] evictMessages(LinkedList messages)
- Description copied from interface:
MessageEvictionStrategy
- Find 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.
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.