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 SummaryFields Modifier and Type Field Description static byteDATA_STRUCTURE_TYPE- 
Fields inherited from class org.apache.activemq.command.BaseCommandcommandId, responseRequired
 
- 
 - 
Constructor SummaryConstructors Constructor Description Response()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCorrelationId()bytegetDataStructureType()booleanisException()booleanisResponse()voidsetCorrelationId(int responseId)Responsevisit(CommandVisitor visitor)- 
Methods inherited from class org.apache.activemq.command.BaseCommandcopy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, isConsumerControl, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, toString, toString
 
- 
 
- 
- 
- 
Field Detail- 
DATA_STRUCTURE_TYPEpublic static final byte DATA_STRUCTURE_TYPE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getDataStructureTypepublic byte getDataStructureType() - Returns:
- The type of the data structure
 
 - 
getCorrelationIdpublic int getCorrelationId() 
 - 
setCorrelationIdpublic void setCorrelationId(int responseId) 
 - 
isResponsepublic boolean isResponse() - Specified by:
- isResponsein interface- Command
- Overrides:
- isResponsein class- BaseCommand
 
 - 
isExceptionpublic boolean isException() 
 - 
visitpublic Response visit(CommandVisitor visitor) throws Exception - Throws:
- Exception
 
 
- 
 
-