org.apache.activemq.memory.buffer
Class MessageQueue
java.lang.Object
org.apache.activemq.memory.buffer.MessageQueue
public class MessageQueue
- extends java.lang.Object
Allows messages to be added to the end of the buffer such that they are kept
around and evicted in a FIFO manner.
- Version:
- $Revision: 1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageQueue
public MessageQueue(MessageBuffer buffer)
add
public void add(MessageReference messageRef)
add
public void add(ActiveMQMessage message)
evictMessage
public int evictMessage()
getList
public java.util.List getList()
- Returns a copy of the list
appendMessages
public void appendMessages(java.util.List answer)
getSize
public int getSize()
getPosition
public int getPosition()
setPosition
public void setPosition(int position)
clear
public void clear()
Copyright © 2009 Apache Software Foundation. All Rights Reserved.