| com.tc.net.core.TCConnectionManager
All known Subclasses: com.tc.net.core.MockConnectionManager, com.tc.net.core.TCConnectionManagerJDK14,
TCConnectionManager | public interface TCConnectionManager (Code) | | Manages connections and listeners. The connection manager also provides default implementations of connection event
handlers. Specifically, the default behaviour is close connections upon any error event
author: teck |
asynchCloseAllConnections | public void asynchCloseAllConnections()(Code) | | Close any open connections created through this connection manager instance
|
closeAllConnections | public void closeAllConnections(long timeout)(Code) | | |
closeAllListeners | public void closeAllListeners()(Code) | | Close all listeners created through this connection manager instance
|
createConnection | public TCConnection createConnection(TCProtocolAdaptor adaptor)(Code) | | Create a new non-connected connection
Parameters: adaptor - protocol adaptor to use for incoming network data |
createListener | public TCListener createListener(TCSocketAddress addr, ProtocolAdaptorFactory factory) throws IOException(Code) | | Create a new listening socket (ie. java.net.ServerSocket) on the given socket address. A default accept queue depth
will be used, and reuseAddress will be true
Parameters: addr - the address to bind the listener to Parameters: factory - protocol adaptor factory used to attach protocol adaptors to newly accpted connections |
createListener | public TCListener createListener(TCSocketAddress addr, ProtocolAdaptorFactory factory, int backlog, boolean reuseAddr) throws IOException(Code) | | Create a new listening socket (ie. java.net.ServerSocket) on the given socket address with the given accect queue
depth
Parameters: addr - the address to bind the listener to Parameters: factory - protocol adaptor factory used to attach protocol adaptors to newly accpted connections Parameters: backlog - accept queue backlog depth Parameters: reuseAddr - whether the bind port will be reused if in use by open sockets |
getAllConnections | public TCConnection[] getAllConnections()(Code) | | Get all non-closed connection instances created by this manager
|
getAllListeners | public TCListener[] getAllListeners()(Code) | | Get all active listener instances created by this manager
|
shutdown | public void shutdown()(Code) | | Shutdown this connection manager. Shutdown will call closeAllConnections() and
closeAllListeners() on your behalf. A shutdown connection manager can be reused or restarted
|
|
|