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
- Version:
- $Revision: 1.6 $
Methods inherited from class org.apache.activemq.command.BaseCommand |
copy, getCommandId, getFrom, getTo, isBrokerInfo, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE
- See Also:
- Constant Field Values
Response
public Response()
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 interface Command
- Overrides:
isResponse
in class BaseCommand
isException
public boolean isException()
visit
public Response visit(CommandVisitor visitor)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2009 Apache Software Foundation. All Rights Reserved.