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,StompFrame,StompFrameError,Tracked,TransactionInfo,WireFormatInfo
public interface Command extends DataStructure
The Command Pattern so that we can send and receive commands on the different transports
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCommandId()EndpointgetFrom()The endpoint within the transport where this message came from which could be null if the transport only supports a single endpoint.EndpointgetTo()The endpoint within the transport where this message is going to - null means all endpoints.booleanisBrokerInfo()booleanisConnectionControl()booleanisConsumerControl()booleanisMessage()booleanisMessageAck()booleanisMessageDispatch()booleanisMessageDispatchNotification()booleanisResponse()booleanisResponseRequired()booleanisShutdownInfo()booleanisWireFormatInfo()voidsetCommandId(int value)voidsetFrom(Endpoint from)voidsetResponseRequired(boolean responseRequired)voidsetTo(Endpoint to)Responsevisit(CommandVisitor visitor)-
Methods inherited from interface org.apache.activemq.command.DataStructure
getDataStructureType, isMarshallAware
-
-
-
-
Method Detail
-
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
Response visit(CommandVisitor visitor) throws Exception
- 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
void setFrom(Endpoint from)
-
getTo
Endpoint getTo()
The endpoint within the transport where this message is going to - null means all endpoints.
-
setTo
void setTo(Endpoint to)
-
-