Class MessageQueue

java.lang.Object
org.apache.activemq.memory.buffer.MessageQueue

public class MessageQueue extends Object
Allows messages to be added to the end of the buffer such that they are kept around and evicted in a FIFO manner.
  • Constructor Details

  • 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

      public List<org.apache.activemq.broker.region.MessageReference> getList()
      Returns a copy of the list
    • appendMessages

      public void appendMessages(List<org.apache.activemq.broker.region.MessageReference> answer)
    • getSize

      public int getSize()
    • getPosition

      public int getPosition()
    • setPosition

      public void setPosition(int position)
    • clear

      public void clear()