Package org.apache.activemq.command
Class Response
java.lang.Object
org.apache.activemq.command.BaseCommand
org.apache.activemq.command.Response
- All Implemented Interfaces:
Command
,DataStructure
- Direct Known Subclasses:
DataArrayResponse
,DataResponse
,ExceptionResponse
,IntegerResponse
,Tracked
-
Field Summary
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
byte
boolean
boolean
void
setCorrelationId
(int responseId) visit
(CommandVisitor visitor) Methods inherited from class org.apache.activemq.command.BaseCommand
copy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, isConsumerControl, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, toString, toString
-
Field Details
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE- See Also:
-
-
Constructor Details
-
Response
public Response()
-
-
Method Details
-
getDataStructureType
public byte getDataStructureType()- Returns:
- The type of the data structure
-
getCorrelationId
public int getCorrelationId() -
setCorrelationId
public void setCorrelationId(int responseId) -
isResponse
public boolean isResponse()- Specified by:
isResponse
in interfaceCommand
- Overrides:
isResponse
in classBaseCommand
-
isException
public boolean isException() -
visit
- Throws:
Exception
-