| |
|
| java.lang.Object org.codehaus.spice.netserve.connection.impl.ConnectionAcceptor
ConnectionAcceptor | class ConnectionAcceptor implements Runnable(Code) | | A helper class that manages acceptor for a single ServerSocket.
author: Peter Donald version: $Revision: 1.2 $ $Date: 2004/03/21 23:42:59 $ |
Method Summary | |
void | close(long timeout) Shutdown the acceptor. | synchronized boolean | hasStarted() Return true if acceptor has started. | synchronized boolean | isRunning() Return true if the acceptor is currently running. | public void | run() The main accept & handle loop for acceptor. | void | shutdownServerSocket() Utility method to shutdown serverSocket. |
ConnectionAcceptor | ConnectionAcceptor(AcceptorConfig config, AcceptorMonitor monitor)(Code) | | Create the acceptor.
Parameters: config - the config for acceptor Parameters: monitor - the monitor |
close | void close(long timeout)(Code) | | Shutdown the acceptor.
|
hasStarted | synchronized boolean hasStarted()(Code) | | Return true if acceptor has started.
true if acceptor has started. |
isRunning | synchronized boolean isRunning()(Code) | | Return true if the acceptor is currently running.
true if the acceptor is currently running. |
run | public void run()(Code) | | The main accept & handle loop for acceptor.
|
shutdownServerSocket | void shutdownServerSocket()(Code) | | Utility method to shutdown serverSocket.
|
|
|
|