org.apache.activemq.command
Class LastPartialCommand

java.lang.Object
  extended by org.apache.activemq.command.PartialCommand
      extended by org.apache.activemq.command.LastPartialCommand
All Implemented Interfaces:
Command, DataStructure

public class LastPartialCommand
extends PartialCommand

Represents the end marker of a stream of PartialCommand instances.


Field Summary
static byte DATA_STRUCTURE_TYPE
           
 
Constructor Summary
LastPartialCommand()
           
 
Method Summary
 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
 byte getDataStructureType()
           
 Response visit(CommandVisitor visitor)
           
 
Methods inherited from class org.apache.activemq.command.PartialCommand
getCommandId, getData, getFrom, getTo, isBrokerInfo, isConnectionControl, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setData, setFrom, setResponseRequired, setTo, 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

LastPartialCommand

public LastPartialCommand()
Method Detail

getDataStructureType

public byte getDataStructureType()
Specified by:
getDataStructureType in interface DataStructure
Overrides:
getDataStructureType in class PartialCommand
Returns:
The type of the data structure

visit

public Response visit(CommandVisitor visitor)
               throws Exception
Specified by:
visit in interface Command
Overrides:
visit in class PartialCommand
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


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.