|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionManager
This is the service through which ConnectionManagement occurs.
Field Summary | |
---|---|
static String |
ROLE
|
Method Summary | |
---|---|
void |
connect(String name,
ServerSocket socket,
ConnectionHandlerFactory handlerFactory)
Start managing a connection. |
void |
connect(String name,
ServerSocket socket,
ConnectionHandlerFactory handlerFactory,
ThreadPool threadPool)
Start managing a connection. |
void |
disconnect(String name)
This shuts down all handlers and socket, waiting for each to gracefully shutdown. |
void |
disconnect(String name,
boolean tearDown)
This shuts down all handlers and socket. |
Field Detail |
---|
static final String ROLE
Method Detail |
---|
void connect(String name, ServerSocket socket, ConnectionHandlerFactory handlerFactory, ThreadPool threadPool) throws Exception
name
- the name of connectionsocket
- the ServerSocket from which tohandlerFactory
- the factory from which to aquire handlersthreadPool
- the thread pool to use
Exception
- if an error occursvoid connect(String name, ServerSocket socket, ConnectionHandlerFactory handlerFactory) throws Exception
name
- the name of connectionsocket
- the ServerSocket from which tohandlerFactory
- the factory from which to aquire handlers
Exception
- if an error occursvoid disconnect(String name) throws Exception
name
- the name of connection
Exception
- if an error occursvoid disconnect(String name, boolean tearDown) throws Exception
name
- the name of connectiontearDown
- if true will forcefully tear down all handlers
Exception
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |