1 18 package org.apache.activemq.command; 19 20 import org.apache.activemq.state.CommandVisitor; 21 22 28 public interface Command extends DataStructure { 29 30 void setCommandId(int value); 31 32 35 int getCommandId(); 36 37 void setResponseRequired(boolean responseRequired); 38 boolean isResponseRequired(); 39 40 boolean isResponse(); 41 boolean isMessageDispatch(); 42 boolean isBrokerInfo(); 43 boolean isWireFormatInfo(); 44 boolean isMessage(); 45 boolean isMessageAck(); 46 boolean isMessageDispatchNotification(); 47 boolean isShutdownInfo(); 48 49 Response visit( CommandVisitor visitor) throws Exception ; 50 51 55 public Endpoint getFrom(); 56 57 public void setFrom(Endpoint from); 58 59 62 public Endpoint getTo(); 63 64 public void setTo(Endpoint to); 65 } 66 | Popular Tags |