Package 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 Object implements Command
Represents a partial command; a large command that has been split up into pieces.
-
-
Field Summary
Fields Modifier and Type Field Description static byteDATA_STRUCTURE_TYPE
-
Constructor Summary
Constructors Constructor Description PartialCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCommandId()byte[]getData()The data for this part of the commandbytegetDataStructureType()EndpointgetFrom()The endpoint within the transport where this message came from which could be null if the transport only supports a single endpoint.EndpointgetTo()The endpoint within the transport where this message is going to - null means all endpoints.booleanisBrokerInfo()booleanisConnectionControl()booleanisConsumerControl()booleanisMarshallAware()booleanisMessage()booleanisMessageAck()booleanisMessageDispatch()booleanisMessageDispatchNotification()booleanisResponse()booleanisResponseRequired()booleanisShutdownInfo()booleanisWireFormatInfo()voidsetCommandId(int commandId)voidsetData(byte[] data)voidsetFrom(Endpoint from)voidsetResponseRequired(boolean responseRequired)voidsetTo(Endpoint to)StringtoString()Responsevisit(CommandVisitor visitor)
-
-
-
Field Detail
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDataStructureType
public byte getDataStructureType()
- Specified by:
getDataStructureTypein interfaceDataStructure- Returns:
- The type of the data structure
-
getCommandId
public int getCommandId()
- Specified by:
getCommandIdin interfaceCommand- Returns:
- the unique ID of this request used to map responses to requests
-
setCommandId
public void setCommandId(int commandId)
- Specified by:
setCommandIdin interfaceCommand
-
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:CommandThe endpoint within the transport where this message came from which could be null if the transport only supports a single endpoint.
-
getTo
public Endpoint getTo()
Description copied from interface:CommandThe endpoint within the transport where this message is going to - null means all endpoints.
-
visit
public Response visit(CommandVisitor visitor) throws Exception
-
isResponseRequired
public boolean isResponseRequired()
- Specified by:
isResponseRequiredin interfaceCommand
-
isResponse
public boolean isResponse()
- Specified by:
isResponsein interfaceCommand
-
isBrokerInfo
public boolean isBrokerInfo()
- Specified by:
isBrokerInfoin interfaceCommand
-
isMessageDispatch
public boolean isMessageDispatch()
- Specified by:
isMessageDispatchin interfaceCommand
-
isMessageAck
public boolean isMessageAck()
- Specified by:
isMessageAckin interfaceCommand
-
isMessageDispatchNotification
public boolean isMessageDispatchNotification()
- Specified by:
isMessageDispatchNotificationin interfaceCommand
-
isShutdownInfo
public boolean isShutdownInfo()
- Specified by:
isShutdownInfoin interfaceCommand
-
isConnectionControl
public boolean isConnectionControl()
- Specified by:
isConnectionControlin interfaceCommand
-
isConsumerControl
public boolean isConsumerControl()
- Specified by:
isConsumerControlin interfaceCommand
-
setResponseRequired
public void setResponseRequired(boolean responseRequired)
- Specified by:
setResponseRequiredin interfaceCommand
-
isWireFormatInfo
public boolean isWireFormatInfo()
- Specified by:
isWireFormatInfoin interfaceCommand
-
isMarshallAware
public boolean isMarshallAware()
- Specified by:
isMarshallAwarein interfaceDataStructure
-
-