public interface MessageEvictionStrategy
Modifier and Type | Method and 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
|
int |
getEvictExpiredMessagesHighWatermark()
REturns the high water mark on which we will eagerly evict expired messages from RAM
|
MessageReference[] evictMessages(LinkedList messages) throws IOException
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).int getEvictExpiredMessagesHighWatermark()
Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.