Package org.apache.activemq.command
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 Summary
Fields Modifier and Type Field Description static byteADD_OPERATION_TYPEprotected BrokerId[]brokerPathprotected ConnectionIdconnectionIdstatic byteDATA_STRUCTURE_TYPEprotected ActiveMQDestinationdestinationprotected byteoperationTypestatic byteREMOVE_OPERATION_TYPEprotected longtimeout-
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
-
-
Constructor Summary
Constructors Constructor Description DestinationInfo()DestinationInfo(ConnectionId connectionId, byte operationType, ActiveMQDestination destination)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DestinationInfocopy()BrokerId[]getBrokerPath()The route of brokers the command has moved through.ConnectionIdgetConnectionId()bytegetDataStructureType()ActiveMQDestinationgetDestination()bytegetOperationType()longgetTimeout()booleanisAddOperation()booleanisRemoveOperation()voidsetBrokerPath(BrokerId[] brokerPath)voidsetConnectionId(ConnectionId connectionId)voidsetDestination(ActiveMQDestination destination)voidsetOperationType(byte operationType)voidsetTimeout(long timeout)Responsevisit(CommandVisitor visitor)-
Methods inherited from class org.apache.activemq.command.BaseCommand
copy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, isConsumerControl, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, toString, toString
-
-
-
-
Field Detail
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE
- See Also:
- Constant Field Values
-
ADD_OPERATION_TYPE
public static final byte ADD_OPERATION_TYPE
- See Also:
- Constant Field Values
-
REMOVE_OPERATION_TYPE
public static final byte REMOVE_OPERATION_TYPE
- See Also:
- Constant Field Values
-
connectionId
protected ConnectionId connectionId
-
destination
protected ActiveMQDestination destination
-
operationType
protected byte operationType
-
timeout
protected long timeout
-
brokerPath
protected BrokerId[] brokerPath
-
-
Constructor Detail
-
DestinationInfo
public DestinationInfo()
-
DestinationInfo
public DestinationInfo(ConnectionId connectionId, byte operationType, ActiveMQDestination destination)
-
-
Method Detail
-
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()
-
-