public class SimpleMessageList extends Object implements MessageList
MessageList where there is a single, fixed size
list that all messages are added to for simplicity. Though this will lead to
possibly slow recovery times as many more messages than is necessary will
have to be iterated through for each subscription.| Constructor and Description |
|---|
SimpleMessageList() |
SimpleMessageList(int maximumSize) |
| 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> |
getList()
Returns a copy of the list
|
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
|
int |
getSize() |
public SimpleMessageList()
public SimpleMessageList(int maximumSize)
public void add(org.apache.activemq.broker.region.MessageReference node)
add in interface MessageListpublic 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 List<org.apache.activemq.broker.region.MessageReference> getList()
public int getSize()
public void clear()
clear in interface MessageListCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.