public interface ConnectionManager
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ROLE |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(java.lang.String name,
java.net.ServerSocket socket,
ConnectionHandlerFactory handlerFactory)
Start managing a connection.
|
void |
connect(java.lang.String name,
java.net.ServerSocket socket,
ConnectionHandlerFactory handlerFactory,
org.apache.excalibur.thread.ThreadPool threadPool)
Start managing a connection.
|
void |
disconnect(java.lang.String name)
This shuts down all handlers and socket, waiting for each to gracefully shutdown.
|
void |
disconnect(java.lang.String name,
boolean tearDown)
This shuts down all handlers and socket.
|
void connect(java.lang.String name,
java.net.ServerSocket socket,
ConnectionHandlerFactory handlerFactory,
org.apache.excalibur.thread.ThreadPool threadPool)
throws java.lang.Exception
name - the name of connectionsocket - the ServerSocket from which tohandlerFactory - the factory from which to aquire handlersthreadPool - the thread pool to usejava.lang.Exception - if an error occursvoid connect(java.lang.String name,
java.net.ServerSocket socket,
ConnectionHandlerFactory handlerFactory)
throws java.lang.Exception
name - the name of connectionsocket - the ServerSocket from which tohandlerFactory - the factory from which to aquire handlersjava.lang.Exception - if an error occursvoid disconnect(java.lang.String name)
throws java.lang.Exception
name - the name of connectionjava.lang.Exception - if an error occursvoid disconnect(java.lang.String name,
boolean tearDown)
throws java.lang.Exception
name - the name of connectiontearDown - if true will forcefully tear down all handlersjava.lang.Exception - if an error occurs