Method Summary |
|
public void | connect(String name, ServerSocket socket, RequestHandler handler) Start accepting connections from a socket and passing connections
to specified handler.
Parameters: name - the name of connection. |
public void | disconnect(String name) This shuts down the acceptor and the associated ServerSocket. |
protected AcceptorMonitor | getMonitor() Return the monitor used by manager. |
protected int | getShutdownTimeout() Return the shutdownTimeout. |
public boolean | isConnected(String name) Return true if acceptor with specified name exists. |
public void | setMonitor(AcceptorMonitor monitor) Set the AcceptorMonitor that receives events when changes occur. |
public void | setShutdownTimeout(int shutdownTimeout) Set timeout for shutting down handlers. |
public void | setSoTimeout(int soTimeout) Set the value that we are to set SO_TIMEOUT to if the user
has not already set the timeout. |
public void | shutdownAcceptors() Dispose the ConnectionManager which involves shutting down all
the connected acceptors. |