1 18 package org.apache.activemq.command; 19 20 import org.apache.activemq.state.CommandVisitor; 21 22 26 public class Response extends BaseCommand { 27 28 public static final byte DATA_STRUCTURE_TYPE=CommandTypes.RESPONSE; 29 int correlationId; 30 31 public byte getDataStructureType() { 32 return DATA_STRUCTURE_TYPE; 33 } 34 35 38 public int getCorrelationId() { 39 return correlationId; 40 } 41 42 public void setCorrelationId(int responseId) { 43 this.correlationId = responseId; 44 } 45 46 public boolean isResponse() { 47 return true; 48 } 49 50 public boolean isException() { 51 return false; 52 } 53 54 public Response visit(CommandVisitor visitor) throws Exception { 55 return null; 56 } 57 } 58 | Popular Tags |