| org.apache.james.services.JamesConnectionManager
All known Subclasses: org.apache.james.util.connection.SimpleConnectionManager,
JamesConnectionManager | public interface JamesConnectionManager extends ConnectionManager(Code) | | This interface extends the standard ConnectionManager interface to allow
connectionLimits to be specified on a per service basis
|
Method Summary | |
void | connect(String name, ServerSocket socket, ConnectionHandlerFactory handlerFactory, ThreadPool threadPool, int maxOpenConnections) Start managing a connection. | void | connect(String name, ServerSocket socket, ConnectionHandlerFactory handlerFactory, int maxOpenConnections) Start managing a connection. | void | connect(String name, ServerSocket socket, ConnectionHandlerFactory handlerFactory, ThreadPool threadPool) Start managing a connection. | void | connect(String name, ServerSocket socket, ConnectionHandlerFactory handlerFactory) Start managing a connection. | int | getMaximumNumberOfOpenConnections() |
ROLE | String ROLE(Code) | | The component role used by components implementing this service
|
connect | void connect(String name, ServerSocket socket, ConnectionHandlerFactory handlerFactory, ThreadPool threadPool, int maxOpenConnections) throws Exception(Code) | | Start managing a connection.
Management involves accepting connections and farming them out to threads
from pool to be handled.
Parameters: name - the name of connection Parameters: socket - the ServerSocket from which to Parameters: handlerFactory - the factory from which to acquire handlers Parameters: threadPool - the thread pool to use Parameters: maxOpenConnections - the maximum number of open connections allowed for this server socket. exception: Exception - if an error occurs |
connect | void connect(String name, ServerSocket socket, ConnectionHandlerFactory handlerFactory, int maxOpenConnections) throws Exception(Code) | | Start managing a connection.
This is similar to other connect method except that it uses default thread pool.
Parameters: name - the name of connection Parameters: socket - the ServerSocket from which to Parameters: handlerFactory - the factory from which to acquire handlers Parameters: maxOpenConnections - the maximum number of open connections allowed for this server socket. exception: Exception - if an error occurs |
connect | void connect(String name, ServerSocket socket, ConnectionHandlerFactory handlerFactory, ThreadPool threadPool) throws Exception(Code) | | Start managing a connection.
Management involves accepting connections and farming them out to threads
from pool to be handled.
Parameters: name - the name of connection Parameters: socket - the ServerSocket from which to Parameters: handlerFactory - the factory from which to acquire handlers Parameters: threadPool - the thread pool to use exception: Exception - if an error occurs |
connect | void connect(String name, ServerSocket socket, ConnectionHandlerFactory handlerFactory) throws Exception(Code) | | Start managing a connection.
Management involves accepting connections and farming them out to threads
from pool to be handled.
Parameters: name - the name of connection Parameters: socket - the ServerSocket from which to Parameters: handlerFactory - the factory from which to acquire handlers exception: Exception - if an error occurs |
getMaximumNumberOfOpenConnections | int getMaximumNumberOfOpenConnections()(Code) | | Returns the default maximum number of open connections supported by this
SimpleConnectionManager
the maximum number of connections |
|
|