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
Used to create and destroy destinations on the broker.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byteprotected BrokerId[]protected ConnectionIdstatic final byteprotected ActiveMQDestinationprotected bytestatic final byteprotected longFields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired -
Constructor Summary
ConstructorsConstructorDescriptionDestinationInfo(ConnectionId connectionId, byte operationType, ActiveMQDestination destination) -
Method Summary
Modifier and TypeMethodDescriptioncopy()BrokerId[]The route of brokers the command has moved through.bytebytelongbooleanbooleanvoidsetBrokerPath(BrokerId[] brokerPath) voidsetConnectionId(ConnectionId connectionId) voidsetDestination(ActiveMQDestination destination) voidsetOperationType(byte operationType) voidsetTimeout(long timeout) visit(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 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
-
destination
-
operationType
protected byte operationType -
timeout
protected long timeout -
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
-
setConnectionId
-
getDestination
-
setDestination
-
getOperationType
public byte getOperationType() -
setOperationType
public void setOperationType(byte operationType) -
getTimeout
public long getTimeout() -
setTimeout
public void setTimeout(long timeout) -
getBrokerPath
The route of brokers the command has moved through. -
setBrokerPath
-
visit
- Throws:
Exception
-
copy
-