org.apache.activemq.command
Class Response

java.lang.Object
  extended by org.apache.activemq.command.BaseCommand
      extended by 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 $

Field Summary
static byte DATA_STRUCTURE_TYPE
           
 
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
 
Constructor Summary
Response()
           
 
Method Summary
 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, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DATA_STRUCTURE_TYPE

public static final byte DATA_STRUCTURE_TYPE
See Also:
Constant Field Values
Constructor Detail

Response

public Response()
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 interface Command
Overrides:
isResponse in class BaseCommand

isException

public boolean isException()

visit

public Response visit(CommandVisitor visitor)
               throws Exception
Throws:
Exception


Copyright © 2009. All Rights Reserved.