1 18 package org.apache.activemq.command; 19 20 import org.apache.activemq.state.CommandVisitor; 21 22 28 public class LastPartialCommand extends PartialCommand { 29 30 public static final byte DATA_STRUCTURE_TYPE = CommandTypes.PARTIAL_LAST_COMMAND; 31 32 public LastPartialCommand() { 33 } 34 35 public byte getDataStructureType() { 36 return DATA_STRUCTURE_TYPE; 37 } 38 39 public Response visit(CommandVisitor visitor) throws Exception { 40 throw new IllegalStateException ("The transport layer should filter out LastPartialCommand instances but received: " + this); 41 } 42 43 49 public void configure(Command completeCommand) { 50 completeCommand.setFrom(getFrom()); 52 } 53 } 54 | Popular Tags |