org.apache.activemq.command
Class PartialCommand
java.lang.Object
org.apache.activemq.command.PartialCommand
- All Implemented Interfaces:
- Command, DataStructure
- Direct Known Subclasses:
- LastPartialCommand
public class PartialCommand
- extends java.lang.Object
- implements Command
Represents a partial command; a large command that has been split up into
pieces.
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
PartialCommand
public PartialCommand()
getDataStructureType
public byte getDataStructureType()
- Specified by:
getDataStructureType
in interface DataStructure
- Returns:
- The type of the data structure
getCommandId
public int getCommandId()
- Specified by:
getCommandId
in interface Command
- Returns:
- the unique ID of this request used to map responses to requests
setCommandId
public void setCommandId(int commandId)
- Specified by:
setCommandId
in interface Command
getData
public byte[] getData()
- The data for this part of the command
setData
public void setData(byte[] data)
getFrom
public Endpoint getFrom()
- Description copied from interface:
Command
- The endpoint within the transport where this message came from which
could be null if the transport only supports a single endpoint.
- Specified by:
getFrom
in interface Command
setFrom
public void setFrom(Endpoint from)
- Specified by:
setFrom
in interface Command
getTo
public Endpoint getTo()
- Description copied from interface:
Command
- The endpoint within the transport where this message is going to - null
means all endpoints.
- Specified by:
getTo
in interface Command
setTo
public void setTo(Endpoint to)
- Specified by:
setTo
in interface Command
visit
public Response visit(CommandVisitor visitor)
throws java.lang.Exception
- Specified by:
visit
in interface Command
- Throws:
java.lang.Exception
isResponseRequired
public boolean isResponseRequired()
- Specified by:
isResponseRequired
in interface Command
isResponse
public boolean isResponse()
- Specified by:
isResponse
in interface Command
isBrokerInfo
public boolean isBrokerInfo()
- Specified by:
isBrokerInfo
in interface Command
isMessageDispatch
public boolean isMessageDispatch()
- Specified by:
isMessageDispatch
in interface Command
isMessage
public boolean isMessage()
- Specified by:
isMessage
in interface Command
isMessageAck
public boolean isMessageAck()
- Specified by:
isMessageAck
in interface Command
isMessageDispatchNotification
public boolean isMessageDispatchNotification()
- Specified by:
isMessageDispatchNotification
in interface Command
isShutdownInfo
public boolean isShutdownInfo()
- Specified by:
isShutdownInfo
in interface Command
isConnectionControl
public boolean isConnectionControl()
- Specified by:
isConnectionControl
in interface Command
setResponseRequired
public void setResponseRequired(boolean responseRequired)
- Specified by:
setResponseRequired
in interface Command
isWireFormatInfo
public boolean isWireFormatInfo()
- Specified by:
isWireFormatInfo
in interface Command
isMarshallAware
public boolean isMarshallAware()
- Specified by:
isMarshallAware
in interface DataStructure
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2005-2011. All Rights Reserved.