public class DestinationBasedMessageList extends java.lang.Object implements MessageList
MessageList which maintains a separate message
list for each destination to reduce contention on the list and to speed up
recovery times by only recovering the interested topics.| Constructor and Description |
|---|
DestinationBasedMessageList(int maximumSize) |
DestinationBasedMessageList(MessageBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(MessageReference node) |
Message[] |
browse(ActiveMQDestination destination) |
void |
clear() |
java.util.List<MessageReference> |
getMessages(ActiveMQDestination destination)
Returns the current list of MessageReference objects for the given subscription
|
java.util.List<MessageReference> |
getMessages(Subscription sub) |
public DestinationBasedMessageList(int maximumSize)
public DestinationBasedMessageList(MessageBuffer buffer)
public void add(MessageReference node)
add in interface MessageListpublic java.util.List<MessageReference> getMessages(Subscription sub)
public java.util.List<MessageReference> getMessages(ActiveMQDestination destination)
MessageListgetMessages in interface MessageListpublic Message[] browse(ActiveMQDestination destination)
browse in interface MessageListpublic void clear()
clear in interface MessageListCopyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.