Package org.apache.activemq.command
Interface Command
- All Superinterfaces:
DataStructure
- All Known Implementing Classes:
ActiveMQBlobMessage,ActiveMQBytesMessage,ActiveMQMapMessage,ActiveMQMessage,ActiveMQObjectMessage,ActiveMQStreamMessage,ActiveMQTextMessage,BaseCommand,BrokerInfo,BrokerSubscriptionInfo,ConnectionControl,ConnectionError,ConnectionInfo,ConsumerControl,ConsumerInfo,ControlCommand,DataArrayResponse,DataResponse,DestinationInfo,ExceptionResponse,FlushCommand,IntegerResponse,KeepAliveInfo,LastPartialCommand,Message,MessageAck,MessageDispatch,MessageDispatchNotification,MessagePull,PartialCommand,ProducerAck,ProducerInfo,RemoveInfo,RemoveSubscriptionInfo,ReplayCommand,Response,SessionInfo,ShutdownInfo,Tracked,TransactionInfo,WireFormatInfo
The Command Pattern so that we can send and receive commands on the different
transports
-
Method Summary
Modifier and TypeMethodDescriptionintgetFrom()The endpoint within the transport where this message came from which could be null if the transport only supports a single endpoint.getTo()The endpoint within the transport where this message is going to - null means all endpoints.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetCommandId(int value) voidvoidsetResponseRequired(boolean responseRequired) voidvisit(CommandVisitor visitor) Methods inherited from interface org.apache.activemq.command.DataStructure
getDataStructureType, isMarshallAware
-
Method Details
-
setCommandId
void setCommandId(int value) -
getCommandId
int getCommandId()- Returns:
- the unique ID of this request used to map responses to requests
-
setResponseRequired
void setResponseRequired(boolean responseRequired) -
isResponseRequired
boolean isResponseRequired() -
isResponse
boolean isResponse() -
isMessageDispatch
boolean isMessageDispatch() -
isBrokerInfo
boolean isBrokerInfo() -
isWireFormatInfo
boolean isWireFormatInfo() -
isMessage
boolean isMessage() -
isMessageAck
boolean isMessageAck() -
isMessageDispatchNotification
boolean isMessageDispatchNotification() -
isShutdownInfo
boolean isShutdownInfo() -
isConnectionControl
boolean isConnectionControl() -
isConsumerControl
boolean isConsumerControl() -
visit
- Throws:
Exception
-
getFrom
Endpoint getFrom()The endpoint within the transport where this message came from which could be null if the transport only supports a single endpoint. -
setFrom
-
getTo
Endpoint getTo()The endpoint within the transport where this message is going to - null means all endpoints. -
setTo
-