Class DestinationInfo

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

public class DestinationInfo extends BaseCommand
Used to create and destroy destinations on the broker.
  • Field Details

    • DATA_STRUCTURE_TYPE

      public static final byte DATA_STRUCTURE_TYPE
      See Also:
    • ADD_OPERATION_TYPE

      public static final byte ADD_OPERATION_TYPE
      See Also:
    • REMOVE_OPERATION_TYPE

      public static final byte REMOVE_OPERATION_TYPE
      See Also:
    • connectionId

      protected ConnectionId connectionId
    • destination

      protected ActiveMQDestination destination
    • operationType

      protected byte operationType
    • timeout

      protected long timeout
    • brokerPath

      protected BrokerId[] brokerPath
  • Constructor Details

    • DestinationInfo

      public DestinationInfo()
    • DestinationInfo

      public DestinationInfo(ConnectionId connectionId, byte operationType, ActiveMQDestination destination)
  • Method Details

    • getDataStructureType

      public byte getDataStructureType()
      Returns:
      The type of the data structure
    • isAddOperation

      public boolean isAddOperation()
    • isRemoveOperation

      public boolean isRemoveOperation()
    • getConnectionId

      public ConnectionId getConnectionId()
    • setConnectionId

      public void setConnectionId(ConnectionId connectionId)
    • getDestination

      public ActiveMQDestination getDestination()
    • setDestination

      public void setDestination(ActiveMQDestination destination)
    • getOperationType

      public byte getOperationType()
    • setOperationType

      public void setOperationType(byte operationType)
    • getTimeout

      public long getTimeout()
    • setTimeout

      public void setTimeout(long timeout)
    • getBrokerPath

      public BrokerId[] getBrokerPath()
      The route of brokers the command has moved through.
    • setBrokerPath

      public void setBrokerPath(BrokerId[] brokerPath)
    • visit

      public Response visit(CommandVisitor visitor) throws Exception
      Throws:
      Exception
    • copy

      public DestinationInfo copy()