Interface Command

All Superinterfaces:
DataStructure
All Known Implementing Classes:
ActiveMQBlobMessage, ActiveMQBytesMessage, ActiveMQMapMessage, ActiveMQMessage, ActiveMQObjectMessage, ActiveMQStreamMessage, ActiveMQTextMessage, BaseCommand, BrokerInfo, BrokerSubscriptionInfo, ConnectionControl, ConnectionError, ConnectionInfo, ConsumerControl, ConsumerInfo, ControlCommand, DataArrayResponse, DataResponse, DestinationInfo, ExceptionResponse, FlushCommand, IntegerResponse, KeepAliveInfo, LastPartialCommand, Message, MessageAck, MessageDispatch, MessageDispatchNotification, MessagePull, PartialCommand, ProducerAck, ProducerInfo, RemoveInfo, RemoveSubscriptionInfo, ReplayCommand, Response, SessionInfo, ShutdownInfo, Tracked, TransactionInfo, WireFormatInfo

public interface Command extends DataStructure
The Command Pattern so that we can send and receive commands on the different transports
  • Method Details

    • setCommandId

      void setCommandId(int value)
    • getCommandId

      int getCommandId()
      Returns:
      the unique ID of this request used to map responses to requests
    • setResponseRequired

      void setResponseRequired(boolean responseRequired)
    • isResponseRequired

      boolean isResponseRequired()
    • isResponse

      boolean isResponse()
    • isMessageDispatch

      boolean isMessageDispatch()
    • isBrokerInfo

      boolean isBrokerInfo()
    • isWireFormatInfo

      boolean isWireFormatInfo()
    • isMessage

      boolean isMessage()
    • isMessageAck

      boolean isMessageAck()
    • isMessageDispatchNotification

      boolean isMessageDispatchNotification()
    • isShutdownInfo

      boolean isShutdownInfo()
    • isConnectionControl

      boolean isConnectionControl()
    • isConsumerControl

      boolean isConsumerControl()
    • visit

      Response visit(CommandVisitor visitor) throws Exception
      Throws:
      Exception
    • getFrom

      Endpoint getFrom()
      The endpoint within the transport where this message came from which could be null if the transport only supports a single endpoint.
    • setFrom

      void setFrom(Endpoint from)
    • getTo

      Endpoint getTo()
      The endpoint within the transport where this message is going to - null means all endpoints.
    • setTo

      void setTo(Endpoint to)