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 byte
ADD_OPERATION_TYPE
protected BrokerId[]
brokerPath
protected ConnectionId
connectionId
static byte
DATA_STRUCTURE_TYPE
protected ActiveMQDestination
destination
protected byte
operationType
static byte
REMOVE_OPERATION_TYPE
protected long
timeout
-
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 DestinationInfo
copy()
BrokerId[]
getBrokerPath()
The route of brokers the command has moved through.ConnectionId
getConnectionId()
byte
getDataStructureType()
ActiveMQDestination
getDestination()
byte
getOperationType()
long
getTimeout()
boolean
isAddOperation()
boolean
isRemoveOperation()
void
setBrokerPath(BrokerId[] brokerPath)
void
setConnectionId(ConnectionId connectionId)
void
setDestination(ActiveMQDestination destination)
void
setOperationType(byte operationType)
void
setTimeout(long timeout)
Response
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 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()
-
-