1 4 package com.tc.net.core; 5 6 import com.tc.net.TCSocketAddress; 7 import com.tc.net.protocol.ProtocolAdaptorFactory; 8 import com.tc.net.protocol.TCProtocolAdaptor; 9 10 import java.io.IOException ; 11 12 18 public interface TCConnectionManager { 19 21 26 public TCConnection createConnection(TCProtocolAdaptor adaptor); 27 28 35 public TCListener createListener(TCSocketAddress addr, ProtocolAdaptorFactory factory) throws IOException ; 36 37 46 public TCListener createListener(TCSocketAddress addr, ProtocolAdaptorFactory factory, int backlog, boolean reuseAddr) 47 throws IOException ; 48 49 52 public void asynchCloseAllConnections(); 53 54 public void closeAllConnections(long timeout); 55 56 59 public void closeAllListeners(); 60 61 65 public void shutdown(); 66 67 70 public TCConnection[] getAllConnections(); 71 72 75 public TCListener[] getAllListeners(); 76 77 } | Popular Tags |