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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
copy
(BaseCommand copy) int
getFrom()
The endpoint within the transport where this message came from.getTo()
The endpoint within the transport where this message is going to - null means all endpoints.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setCommandId
(int commandId) void
void
setResponseRequired
(boolean responseRequired) void
toString()
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
-
Field Details
-
commandId
protected int commandId -
responseRequired
protected boolean responseRequired
-
-
Constructor Details
-
BaseCommand
public BaseCommand()
-
-
Method Details
-
copy
-
getCommandId
public int getCommandId()- Specified by:
getCommandId
in interfaceCommand
- Returns:
- the unique ID of this request used to map responses to requests
-
setCommandId
public void setCommandId(int commandId) - Specified by:
setCommandId
in interfaceCommand
-
isResponseRequired
public boolean isResponseRequired()- Specified by:
isResponseRequired
in interfaceCommand
-
setResponseRequired
public void setResponseRequired(boolean responseRequired) - Specified by:
setResponseRequired
in interfaceCommand
-
toString
-
toString
-
isWireFormatInfo
public boolean isWireFormatInfo()- Specified by:
isWireFormatInfo
in interfaceCommand
-
isBrokerInfo
public boolean isBrokerInfo()- Specified by:
isBrokerInfo
in interfaceCommand
-
isResponse
public boolean isResponse()- Specified by:
isResponse
in interfaceCommand
-
isMessageDispatch
public boolean isMessageDispatch()- Specified by:
isMessageDispatch
in interfaceCommand
-
isMessage
public boolean isMessage() -
isMarshallAware
public boolean isMarshallAware()- Specified by:
isMarshallAware
in interfaceDataStructure
-
isMessageAck
public boolean isMessageAck()- Specified by:
isMessageAck
in interfaceCommand
-
isMessageDispatchNotification
public boolean isMessageDispatchNotification()- Specified by:
isMessageDispatchNotification
in interfaceCommand
-
isShutdownInfo
public boolean isShutdownInfo()- Specified by:
isShutdownInfo
in interfaceCommand
-
isConnectionControl
public boolean isConnectionControl()- Specified by:
isConnectionControl
in interfaceCommand
-
isConsumerControl
public boolean isConsumerControl()- Specified by:
isConsumerControl
in interfaceCommand
-
getFrom
The endpoint within the transport where this message came from. -
setFrom
-
getTo
The endpoint within the transport where this message is going to - null means all endpoints. -
setTo
-