public class UniquePropertyMessageEvictionStrategy extends MessageEvictionStrategySupport
| Modifier and Type | Field and Description |
|---|---|
protected String |
propertyName |
| Constructor and Description |
|---|
UniquePropertyMessageEvictionStrategy() |
| 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
|
String |
getPropertyName() |
void |
setPropertyName(String propertyName) |
getEvictExpiredMessagesHighWatermark, setEvictExpiredMessagesHighWatermarkprotected String propertyName
public UniquePropertyMessageEvictionStrategy()
public String getPropertyName()
public void setPropertyName(String propertyName)
public MessageReference[] evictMessages(LinkedList messages) throws IOException
MessageEvictionStrategyIOException - 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–2016 FuseSource, Corp.. All rights reserved.