1 18 package org.apache.activemq.broker; 19 20 import java.io.IOException ; 21 22 import org.apache.activemq.Service; 23 import org.apache.activemq.broker.region.ConnectionStatistics; 24 import org.apache.activemq.command.Command; 25 import org.apache.activemq.command.Response; 26 27 31 public interface Connection extends Service { 32 33 36 public Connector getConnector(); 37 38 44 public void dispatchSync(Command message); 45 46 51 public void dispatchAsync(Command command); 52 53 58 public Response service(Command command); 59 60 65 public void serviceException(Throwable error); 66 67 70 public boolean isSlow(); 71 72 75 public boolean isBlocked(); 76 77 80 public boolean isConnected(); 81 82 85 public boolean isActive(); 86 87 90 public int getDispatchQueueSize(); 91 92 95 public ConnectionStatistics getStatistics(); 96 97 100 public boolean isManageable(); 101 102 105 public String getRemoteAddress(); 106 107 public void serviceExceptionAsync(IOException e); 108 109 public String getConnectionId(); 110 111 } 112 | Popular Tags |