public abstract class BaseCommand extends Object implements Command
Modifier and Type | Field and Description |
---|---|
protected int |
commandId |
protected boolean |
responseRequired |
Constructor and Description |
---|
BaseCommand() |
Modifier and Type | Method and Description |
---|---|
void |
copy(BaseCommand copy) |
int |
getCommandId() |
Endpoint |
getFrom()
The endpoint within the transport where this message came from.
|
Endpoint |
getTo()
The endpoint within the transport where this message is going to - null
means all endpoints.
|
boolean |
isBrokerInfo() |
boolean |
isConnectionControl() |
boolean |
isConsumerControl() |
boolean |
isMarshallAware() |
boolean |
isMessage() |
boolean |
isMessageAck() |
boolean |
isMessageDispatch() |
boolean |
isMessageDispatchNotification() |
boolean |
isResponse() |
boolean |
isResponseRequired() |
boolean |
isShutdownInfo() |
boolean |
isWireFormatInfo() |
void |
setCommandId(int commandId) |
void |
setFrom(Endpoint from) |
void |
setResponseRequired(boolean responseRequired) |
void |
setTo(Endpoint to) |
String |
toString() |
String |
toString(Map<String,Object> overrideFields) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataStructureType
protected int commandId
protected boolean responseRequired
public BaseCommand()
public void copy(BaseCommand copy)
public int getCommandId()
getCommandId
in interface Command
public void setCommandId(int commandId)
setCommandId
in interface Command
public boolean isResponseRequired()
isResponseRequired
in interface Command
public void setResponseRequired(boolean responseRequired)
setResponseRequired
in interface Command
public boolean isWireFormatInfo()
isWireFormatInfo
in interface Command
public boolean isBrokerInfo()
isBrokerInfo
in interface Command
public boolean isResponse()
isResponse
in interface Command
public boolean isMessageDispatch()
isMessageDispatch
in interface Command
public boolean isMarshallAware()
isMarshallAware
in interface DataStructure
public boolean isMessageAck()
isMessageAck
in interface Command
public boolean isMessageDispatchNotification()
isMessageDispatchNotification
in interface Command
public boolean isShutdownInfo()
isShutdownInfo
in interface Command
public boolean isConnectionControl()
isConnectionControl
in interface Command
public boolean isConsumerControl()
isConsumerControl
in interface Command
public Endpoint getTo()
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.