sg.edu.nus.util
Interface PooledSocketHandler

All Known Implementing Classes:
AbstractEventDispatcher, AbstractPooledSocketHandler, BootstrapEventDispatcher, EventDispatcherAdapter, ServerEventDispatcher

public interface PooledSocketHandler

This interface is responsible for processing any incoming socket request passed from PooledSocketServer.

The PooledSocketServer is responsible for initiating PooledSocketHandlers, each of which will be in the status of sleep when no socket request comes in and woke up for handling socket request when a socket request arrives.

Version:
1.0 2005-12-29
Author:
Xu Linhao
See Also:
PooledSocketServer, AbstractPooledSocketHandler

Method Summary
 void handleConnection()
          Process the incoming socket requests and reply with a response if necessary.
 void stop()
          Stop the socket handler.
 

Method Detail

handleConnection

void handleConnection()
Process the incoming socket requests and reply with a response if necessary.


stop

void stop()
Stop the socket handler.