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
public class Response extends BaseCommand
-
-
Field Summary
Fields Modifier and Type Field Description static byte
DATA_STRUCTURE_TYPE
-
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
-
-
Constructor Summary
Constructors Constructor Description Response()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCorrelationId()
byte
getDataStructureType()
boolean
isException()
boolean
isResponse()
void
setCorrelationId(int responseId)
Response
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 Detail
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public Response visit(CommandVisitor visitor) throws Exception
- Throws:
Exception
-
-