Package org.apache.activemq.memory.list
Interface MessageList
- All Known Implementing Classes:
DestinationBasedMessageList,SimpleMessageList
public interface MessageList
A container of messages which is used to store messages and then
replay them later for a given subscription.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.apache.activemq.broker.region.MessageReference node) org.apache.activemq.command.Message[]browse(org.apache.activemq.command.ActiveMQDestination destination) voidclear()getMessages(org.apache.activemq.command.ActiveMQDestination destination) Returns the current list of MessageReference objects for the given subscription
-
Method Details
-
add
void add(org.apache.activemq.broker.region.MessageReference node) -
getMessages
Returns the current list of MessageReference objects for the given subscription -
browse
org.apache.activemq.command.Message[] browse(org.apache.activemq.command.ActiveMQDestination destination) - Parameters:
destination-- Returns:
- an array of Messages that match the destination
-
clear
void clear()
-