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
FieldsFields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbytebooleanbooleanvoidsetCorrelationId(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:
isResponsein interfaceCommand- Overrides:
isResponsein classBaseCommand
-
isException
public boolean isException() -
visit
- Throws:
Exception
-