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.
- Version:
- $Revision: 1.9 $
Methods inherited from class org.apache.activemq.command.BaseCommand |
copy, getCommandId, getFrom, getTo, isBrokerInfo, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, toString |
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
DestinationInfo
public DestinationInfo()
DestinationInfo
public DestinationInfo(ConnectionId connectionId,
byte operationType,
ActiveMQDestination destination)
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
Copyright © 2011 Apache Software Foundation. All Rights Reserved.