public abstract class BaseCommand extends java.lang.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 |
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) |
java.lang.String |
toString() |
java.lang.String |
toString(java.util.Map<java.lang.String,java.lang.Object> overrideFields) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDataStructureTypepublic void copy(BaseCommand copy)
public int getCommandId()
getCommandId in interface Commandpublic void setCommandId(int commandId)
setCommandId in interface Commandpublic boolean isResponseRequired()
isResponseRequired in interface Commandpublic void setResponseRequired(boolean responseRequired)
setResponseRequired in interface Commandpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.util.Map<java.lang.String,java.lang.Object> overrideFields)
public boolean isWireFormatInfo()
isWireFormatInfo in interface Commandpublic boolean isBrokerInfo()
isBrokerInfo in interface Commandpublic boolean isResponse()
isResponse in interface Commandpublic boolean isMessageDispatch()
isMessageDispatch in interface Commandpublic boolean isMarshallAware()
isMarshallAware in interface DataStructurepublic boolean isMessageAck()
isMessageAck in interface Commandpublic boolean isMessageDispatchNotification()
isMessageDispatchNotification in interface Commandpublic boolean isShutdownInfo()
isShutdownInfo in interface Commandpublic boolean isConnectionControl()
isConnectionControl in interface Commandpublic Endpoint getFrom()
public Endpoint getTo()
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.