|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JamesConnectionManager
This interface extends the standard ConnectionManager interface to allow connectionLimits to be specified on a per service basis
Field Summary | |
---|---|
static java.lang.String |
ROLE
The component role used by components implementing this service |
Method Summary | |
---|---|
void |
connect(java.lang.String name,
java.net.ServerSocket socket,
org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory handlerFactory)
Start managing a connection. |
void |
connect(java.lang.String name,
java.net.ServerSocket socket,
org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory handlerFactory,
int maxOpenConnections)
Start managing a connection. |
void |
connect(java.lang.String name,
java.net.ServerSocket socket,
org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory handlerFactory,
org.apache.excalibur.thread.ThreadPool threadPool)
Start managing a connection. |
void |
connect(java.lang.String name,
java.net.ServerSocket socket,
org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory handlerFactory,
org.apache.excalibur.thread.ThreadPool threadPool,
int maxOpenConnections)
Start managing a connection. |
int |
getMaximumNumberOfOpenConnections()
Returns the default maximum number of open connections supported by this SimpleConnectionManager |
Methods inherited from interface org.apache.avalon.cornerstone.services.connection.ConnectionManager |
---|
disconnect, disconnect |
Field Detail |
---|
static final java.lang.String ROLE
Method Detail |
---|
int getMaximumNumberOfOpenConnections()
void connect(java.lang.String name, java.net.ServerSocket socket, org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory handlerFactory, org.apache.excalibur.thread.ThreadPool threadPool, int maxOpenConnections) throws java.lang.Exception
name
- the name of connectionsocket
- the ServerSocket from which tohandlerFactory
- the factory from which to acquire handlersthreadPool
- the thread pool to usemaxOpenConnections
- the maximum number of open connections allowed for this server socket.
java.lang.Exception
- if an error occursvoid connect(java.lang.String name, java.net.ServerSocket socket, org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory handlerFactory, int maxOpenConnections) throws java.lang.Exception
name
- the name of connectionsocket
- the ServerSocket from which tohandlerFactory
- the factory from which to acquire handlersmaxOpenConnections
- the maximum number of open connections allowed for this server socket.
java.lang.Exception
- if an error occursvoid connect(java.lang.String name, java.net.ServerSocket socket, org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory handlerFactory, org.apache.excalibur.thread.ThreadPool threadPool) throws java.lang.Exception
connect
in interface org.apache.avalon.cornerstone.services.connection.ConnectionManager
name
- the name of connectionsocket
- the ServerSocket from which tohandlerFactory
- the factory from which to acquire handlersthreadPool
- the thread pool to use
java.lang.Exception
- if an error occursvoid connect(java.lang.String name, java.net.ServerSocket socket, org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory handlerFactory) throws java.lang.Exception
connect
in interface org.apache.avalon.cornerstone.services.connection.ConnectionManager
name
- the name of connectionsocket
- the ServerSocket from which tohandlerFactory
- the factory from which to acquire handlers
java.lang.Exception
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |