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
Modifier and TypeFieldDescriptionstatic final byte
protected BrokerId[]
protected ConnectionId
static final byte
protected ActiveMQDestination
protected byte
static final byte
protected long
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
-
Constructor Summary
ConstructorDescriptionDestinationInfo
(ConnectionId connectionId, byte operationType, ActiveMQDestination destination) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
BrokerId[]
The route of brokers the command has moved through.byte
byte
long
boolean
boolean
void
setBrokerPath
(BrokerId[] brokerPath) void
setConnectionId
(ConnectionId connectionId) void
setDestination
(ActiveMQDestination destination) void
setOperationType
(byte operationType) void
setTimeout
(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
-