| org.apache.james.util.connection.ServerConnection
ServerConnection | public class ServerConnection extends AbstractLogEnabled implements Initializable,Runnable(Code) | | Represents a single server socket managed by a connection manager.
The connection manager will spawn a single ServerConnection for each
server socket that the connection manager is managing.
|
Inner Class :class ClientConnectionRunner extends AbstractLogEnabled implements Poolable,Runnable | |
Constructor Summary | |
public | ServerConnection(ServerSocket serverSocket, ConnectionHandlerFactory handlerFactory, ThreadPool threadPool, int timeout, int maxOpenConn) The sole constructor for a ServerConnection. |
Method Summary | |
public void | dispose() The dispose operation is called by the owning ConnectionManager
at the end of its lifecycle. | public void | initialize() | public void | run() Provides the body for the thread of execution for a ServerConnection. |
ServerConnection | public ServerConnection(ServerSocket serverSocket, ConnectionHandlerFactory handlerFactory, ThreadPool threadPool, int timeout, int maxOpenConn)(Code) | | The sole constructor for a ServerConnection.
Parameters: serverSocket - the ServerSocket associated with this ServerConnection Parameters: handlerFactory - the factory that generates ConnectionHandlers for the clientconnections spawned off this ServerConnection Parameters: threadPool - the ThreadPool used to obtain handler threads Parameters: timeout - the client idle timeout for this ServerConnection's client connections Parameters: maxOpenConn - the maximum number of open client connections allowed for thisServerConnection |
dispose | public void dispose()(Code) | | The dispose operation is called by the owning ConnectionManager
at the end of its lifecycle. Cleans up the server connection, forcing
everything to finish.
|
initialize | public void initialize() throws Exception(Code) | | See Also: org.apache.avalon.framework.activity.Initializable.initialize |
run | public void run()(Code) | | Provides the body for the thread of execution for a ServerConnection.
Connections made to the server socket are passed to an appropriate,
newly created, ClientConnectionRunner
|
|
|