Package org.apache.activemq.command
Class LastPartialCommand
- java.lang.Object
-
- org.apache.activemq.command.PartialCommand
-
- org.apache.activemq.command.LastPartialCommand
-
- All Implemented Interfaces:
Command
,DataStructure
public class LastPartialCommand extends PartialCommand
Represents the end marker of a stream ofPartialCommand
instances.
-
-
Field Summary
Fields Modifier and Type Field Description static byte
DATA_STRUCTURE_TYPE
-
Constructor Summary
Constructors Constructor Description LastPartialCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Command completeCommand)
Lets copy across any transient fields from this command to the complete command when it is unmarshalled on the other endbyte
getDataStructureType()
Response
visit(CommandVisitor visitor)
-
Methods inherited from class org.apache.activemq.command.PartialCommand
getCommandId, getData, getFrom, getTo, isBrokerInfo, isConnectionControl, isConsumerControl, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setData, setFrom, setResponseRequired, setTo, toString
-
-
-
-
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:
getDataStructureType
in interfaceDataStructure
- Overrides:
getDataStructureType
in classPartialCommand
- Returns:
- The type of the data structure
-
visit
public Response visit(CommandVisitor visitor) throws Exception
- Specified by:
visit
in interfaceCommand
- Overrides:
visit
in classPartialCommand
- Throws:
Exception
-
configure
public void configure(Command completeCommand)
Lets copy across any transient fields from this command to the complete command when it is unmarshalled on the other end- Parameters:
completeCommand
- the newly unmarshalled complete command
-
-