public class UniquePropertyMessageEvictionStrategy extends MessageEvictionStrategySupport
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
propertyName |
Constructor and Description |
---|
UniquePropertyMessageEvictionStrategy() |
Modifier and Type | Method and Description |
---|---|
MessageReference[] |
evictMessages(java.util.LinkedList messages)
Find the message reference in the given list with oldest messages at the front and newer messages at the end
|
java.lang.String |
getPropertyName() |
void |
setPropertyName(java.lang.String propertyName) |
getEvictExpiredMessagesHighWatermark, setEvictExpiredMessagesHighWatermark
protected java.lang.String propertyName
public UniquePropertyMessageEvictionStrategy()
public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String propertyName)
public MessageReference[] evictMessages(java.util.LinkedList messages) throws java.io.IOException
MessageEvictionStrategy
java.io.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).Copyright © 2005-2017. All Rights Reserved.