1 18 package org.apache.activemq.transport; 19 20 import org.apache.activemq.Service; 21 22 import java.io.IOException ; 23 24 30 public interface Transport extends Service { 31 32 37 public void oneway(Object command) throws IOException ; 38 39 49 public FutureResponse asyncRequest(Object command, ResponseCallback responseCallback) throws IOException ; 50 51 57 public Object request(Object command) throws IOException ; 58 59 66 public Object request(Object command, int timeout) throws IOException ; 67 68 69 105 109 public TransportListener getTransportListener(); 110 111 115 public void setTransportListener(TransportListener commandListener); 116 117 121 public Object narrow(Class target); 122 123 127 public String getRemoteAddress(); 128 129 } 130 | Popular Tags |