Package org.apache.activemq.command
Class BaseCommand
- java.lang.Object
-
- org.apache.activemq.command.BaseCommand
-
- All Implemented Interfaces:
Command,DataStructure
- Direct Known Subclasses:
BrokerInfo,BrokerSubscriptionInfo,ConnectionControl,ConnectionError,ConnectionInfo,ConsumerControl,ConsumerInfo,ControlCommand,DestinationInfo,FlushCommand,KeepAliveInfo,Message,MessageAck,MessageDispatch,MessageDispatchNotification,MessagePull,ProducerAck,ProducerInfo,RemoveInfo,RemoveSubscriptionInfo,ReplayCommand,Response,SessionInfo,ShutdownInfo,TransactionInfo
public abstract class BaseCommand extends Object implements Command
-
-
Field Summary
Fields Modifier and Type Field Description protected intcommandIdprotected booleanresponseRequired
-
Constructor Summary
Constructors Constructor Description BaseCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopy(BaseCommand copy)intgetCommandId()EndpointgetFrom()The endpoint within the transport where this message came from.EndpointgetTo()The endpoint within the transport where this message is going to - null means all endpoints.booleanisBrokerInfo()booleanisConnectionControl()booleanisConsumerControl()booleanisMarshallAware()booleanisMessage()booleanisMessageAck()booleanisMessageDispatch()booleanisMessageDispatchNotification()booleanisResponse()booleanisResponseRequired()booleanisShutdownInfo()booleanisWireFormatInfo()voidsetCommandId(int commandId)voidsetFrom(Endpoint from)voidsetResponseRequired(boolean responseRequired)voidsetTo(Endpoint to)StringtoString()StringtoString(Map<String,Object> overrideFields)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.command.DataStructure
getDataStructureType
-
-
-
-
Method Detail
-
copy
public void copy(BaseCommand copy)
-
getCommandId
public int getCommandId()
- Specified by:
getCommandIdin interfaceCommand- Returns:
- the unique ID of this request used to map responses to requests
-
setCommandId
public void setCommandId(int commandId)
- Specified by:
setCommandIdin interfaceCommand
-
isResponseRequired
public boolean isResponseRequired()
- Specified by:
isResponseRequiredin interfaceCommand
-
setResponseRequired
public void setResponseRequired(boolean responseRequired)
- Specified by:
setResponseRequiredin interfaceCommand
-
isWireFormatInfo
public boolean isWireFormatInfo()
- Specified by:
isWireFormatInfoin interfaceCommand
-
isBrokerInfo
public boolean isBrokerInfo()
- Specified by:
isBrokerInfoin interfaceCommand
-
isResponse
public boolean isResponse()
- Specified by:
isResponsein interfaceCommand
-
isMessageDispatch
public boolean isMessageDispatch()
- Specified by:
isMessageDispatchin interfaceCommand
-
isMarshallAware
public boolean isMarshallAware()
- Specified by:
isMarshallAwarein interfaceDataStructure
-
isMessageAck
public boolean isMessageAck()
- Specified by:
isMessageAckin interfaceCommand
-
isMessageDispatchNotification
public boolean isMessageDispatchNotification()
- Specified by:
isMessageDispatchNotificationin interfaceCommand
-
isShutdownInfo
public boolean isShutdownInfo()
- Specified by:
isShutdownInfoin interfaceCommand
-
isConnectionControl
public boolean isConnectionControl()
- Specified by:
isConnectionControlin interfaceCommand
-
isConsumerControl
public boolean isConsumerControl()
- Specified by:
isConsumerControlin interfaceCommand
-
getFrom
public Endpoint getFrom()
The endpoint within the transport where this message came from.
-
getTo
public Endpoint getTo()
The endpoint within the transport where this message is going to - null means all endpoints.
-
-