Package org.apache.activemq.command
Class PartialCommand
java.lang.Object
org.apache.activemq.command.PartialCommand
- All Implemented Interfaces:
Command
,DataStructure
- Direct Known Subclasses:
LastPartialCommand
Represents a partial command; a large command that has been split up into
pieces.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
byte[]
getData()
The data for this part of the commandbyte
getFrom()
The endpoint within the transport where this message came from which could be null if the transport only supports a single endpoint.getTo()
The endpoint within the transport where this message is going to - null means all endpoints.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setCommandId
(int commandId) void
setData
(byte[] data) void
void
setResponseRequired
(boolean responseRequired) void
toString()
visit
(CommandVisitor visitor)
-
Field Details
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE- See Also:
-
-
Constructor Details
-
PartialCommand
public PartialCommand()
-
-
Method Details
-
getDataStructureType
public byte getDataStructureType()- Specified by:
getDataStructureType
in interfaceDataStructure
- Returns:
- The type of the data structure
-
getCommandId
public int getCommandId()- Specified by:
getCommandId
in interfaceCommand
- Returns:
- the unique ID of this request used to map responses to requests
-
setCommandId
public void setCommandId(int commandId) - Specified by:
setCommandId
in interfaceCommand
-
getData
public byte[] getData()The data for this part of the command -
setData
public void setData(byte[] data) -
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. -
setFrom
-
getTo
Description copied from interface:Command
The endpoint within the transport where this message is going to - null means all endpoints. -
setTo
-
visit
-
isResponseRequired
public boolean isResponseRequired()- Specified by:
isResponseRequired
in interfaceCommand
-
isResponse
public boolean isResponse()- Specified by:
isResponse
in interfaceCommand
-
isBrokerInfo
public boolean isBrokerInfo()- Specified by:
isBrokerInfo
in interfaceCommand
-
isMessageDispatch
public boolean isMessageDispatch()- Specified by:
isMessageDispatch
in interfaceCommand
-
isMessage
public boolean isMessage() -
isMessageAck
public boolean isMessageAck()- Specified by:
isMessageAck
in interfaceCommand
-
isMessageDispatchNotification
public boolean isMessageDispatchNotification()- Specified by:
isMessageDispatchNotification
in interfaceCommand
-
isShutdownInfo
public boolean isShutdownInfo()- Specified by:
isShutdownInfo
in interfaceCommand
-
isConnectionControl
public boolean isConnectionControl()- Specified by:
isConnectionControl
in interfaceCommand
-
isConsumerControl
public boolean isConsumerControl()- Specified by:
isConsumerControl
in interfaceCommand
-
setResponseRequired
public void setResponseRequired(boolean responseRequired) - Specified by:
setResponseRequired
in interfaceCommand
-
isWireFormatInfo
public boolean isWireFormatInfo()- Specified by:
isWireFormatInfo
in interfaceCommand
-
isMarshallAware
public boolean isMarshallAware()- Specified by:
isMarshallAware
in interfaceDataStructure
-
toString
-