|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageEvictionStrategy
A strategy for evicting messages from slow consumers.
Method Summary | |
---|---|
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 |
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |