org.codehaus.spice.netserve.connection
Interface RequestHandler

All Known Implementing Classes:
AbstractRequestHandler

public interface RequestHandler

Implement this interface to process incoming socket connections.

Version:
$Revision: 1.2 $ $Date: 2004/03/21 23:43:00 $
Author:
Peter Donald

Method Summary
 void handleConnection(Socket socket)
          Processes connections as they occur.
 void shutdown(long timeout)
          Shutdown the handler and any requests currently being handled.
 

Method Detail

handleConnection

public void handleConnection(Socket socket)
Processes connections as they occur.

Parameters:
socket - the socket

shutdown

public void shutdown(long timeout)
Shutdown the handler and any requests currently being handled. The timeout specifies the time to wait while shutting down request handlers. A timeout of 0 indicates that should wait indefinetly.

Parameters:
timeout - the timeout


Copyright © 1999-2004 Codehaus. All Rights Reserved.