Class MessagePull

java.lang.Object
org.apache.activemq.command.BaseCommand
org.apache.activemq.command.MessagePull
All Implemented Interfaces:
Command, DataStructure, TransientInitializer

public class MessagePull extends BaseCommand implements TransientInitializer
Used to pull messages on demand.
  • Field Details

  • Constructor Details

    • MessagePull

      public MessagePull()
  • Method Details

    • getDataStructureType

      public byte getDataStructureType()
      Specified by:
      getDataStructureType in interface DataStructure
      Returns:
      The type of the data structure
    • visit

      public Response visit(CommandVisitor visitor) throws Exception
      Specified by:
      visit in interface Command
      Throws:
      Exception
    • configure

      public void configure(ConsumerInfo info)
      Configures a message pull from the consumer information
    • getConsumerId

      public ConsumerId getConsumerId()
    • setConsumerId

      public void setConsumerId(ConsumerId consumerId)
    • getDestination

      public ActiveMQDestination getDestination()
    • setDestination

      public void setDestination(ActiveMQDestination destination)
    • getTimeout

      public long getTimeout()
    • setTimeout

      public void setTimeout(long timeout)
    • getCorrelationId

      public String getCorrelationId()
      An optional correlation ID which could be used by a broker to decide which messages are pulled on demand from a queue for a consumer
    • setCorrelationId

      public void setCorrelationId(String correlationId)
    • getMessageId

      public MessageId getMessageId()
      An optional message ID which could be used by a broker to decide which messages are pulled on demand from a queue for a consumer
    • setMessageId

      public void setMessageId(MessageId messageId)
    • setTracked

      public void setTracked(boolean tracked)
    • isTracked

      public boolean isTracked()
    • getQuantity

      public int getQuantity()
    • setQuantity

      public void setQuantity(int quantity)
    • isAlwaysSignalDone

      public boolean isAlwaysSignalDone()
    • setAlwaysSignalDone

      public void setAlwaysSignalDone(boolean alwaysSignalDone)
    • initTransients

      public void initTransients()
      Specified by:
      initTransients in interface TransientInitializer