public class DestinationBasedMessageList extends 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(org.apache.activemq.broker.region.MessageReference node) |
org.apache.activemq.command.Message[] |
browse(org.apache.activemq.command.ActiveMQDestination destination) |
void |
clear() |
List<org.apache.activemq.broker.region.MessageReference> |
getMessages(org.apache.activemq.command.ActiveMQDestination destination)
Returns the current list of MessageReference objects for the given subscription
|
List<org.apache.activemq.broker.region.MessageReference> |
getMessages(Subscription sub) |
public DestinationBasedMessageList(int maximumSize)
public DestinationBasedMessageList(MessageBuffer buffer)
public void add(org.apache.activemq.broker.region.MessageReference node)
add in interface MessageListpublic List<org.apache.activemq.broker.region.MessageReference> getMessages(Subscription sub)
public List<org.apache.activemq.broker.region.MessageReference> getMessages(org.apache.activemq.command.ActiveMQDestination destination)
MessageListgetMessages in interface MessageListpublic org.apache.activemq.command.Message[] browse(org.apache.activemq.command.ActiveMQDestination destination)
browse in interface MessageListpublic void clear()
clear in interface MessageListCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.