Class MessageQueue
java.lang.Object
org.apache.activemq.memory.buffer.MessageQueue
Allows messages to be added to the end of the buffer such that they are kept
around and evicted in a FIFO manner.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(org.apache.activemq.broker.region.MessageReference messageRef) void
add
(org.apache.activemq.command.ActiveMQMessage message) void
appendMessages
(List<org.apache.activemq.broker.region.MessageReference> answer) void
clear()
int
List<org.apache.activemq.broker.region.MessageReference>
getList()
Returns a copy of the listint
int
getSize()
void
setPosition
(int position)
-
Constructor Details
-
MessageQueue
-
-
Method Details
-
add
public void add(org.apache.activemq.broker.region.MessageReference messageRef) -
add
public void add(org.apache.activemq.command.ActiveMQMessage message) -
evictMessage
public int evictMessage() -
getList
Returns a copy of the list -
appendMessages
-
getSize
public int getSize() -
getPosition
public int getPosition() -
setPosition
public void setPosition(int position) -
clear
public void clear()
-