1 18 package org.apache.activemq.command; 19 20 import org.apache.activemq.state.CommandVisitor; 21 22 31 public class ReplayCommand extends BaseCommand { 32 33 public static final byte DATA_STRUCTURE_TYPE = CommandTypes.REPLAY; 34 35 private String producerId; 36 private int firstAckNumber; 37 private int lastAckNumber; 38 private int firstNakNumber; 39 private int lastNakNumber; 40 41 public ReplayCommand() { 42 } 43 44 public byte getDataStructureType() { 45 return DATA_STRUCTURE_TYPE; 46 } 47 48 public String getProducerId() { 49 return producerId; 50 } 51 52 57 public void setProducerId(String producerId) { 58 this.producerId = producerId; 59 } 60 61 public int getFirstAckNumber() { 62 return firstAckNumber; 63 } 64 65 71 public void setFirstAckNumber(int firstSequenceNumber) { 72 this.firstAckNumber = firstSequenceNumber; 73 } 74 75 public int getLastAckNumber() { 76 return lastAckNumber; 77 } 78 79 85 public void setLastAckNumber(int lastSequenceNumber) { 86 this.lastAckNumber = lastSequenceNumber; 87 } 88 89 public Response visit(CommandVisitor visitor) throws Exception { 90 return null; 91 } 92 93 98 public int getFirstNakNumber() { 99 return firstNakNumber; 100 } 101 102 public void setFirstNakNumber(int firstNakNumber) { 103 this.firstNakNumber = firstNakNumber; 104 } 105 106 111 public int getLastNakNumber() { 112 return lastNakNumber; 113 } 114 115 public void setLastNakNumber(int lastNakNumber) { 116 this.lastNakNumber = lastNakNumber; 117 } 118 119 public String toString() { 120 return "ReplayCommand {commandId = " + getCommandId() + ", firstNakNumber = " + getFirstNakNumber() + ", lastNakNumber = " + getLastNakNumber() + "}"; 121 } 122 123 } 124 | Popular Tags |