public interface IoService
Modifier and Type | Method and Description |
---|---|
IoFilter[] |
getFilters()
Get the list of filters installed on this service
|
IoHandler |
getIoHandler()
Get the
IoHandler in charge of your business logic for this service. |
IoHandlerExecutor |
getIoHandlerExecutor()
Get the
IoHandlerExecutor used for executing IoHandler events in another pool of thread (not in
the low level I/O one). |
Map<Long,IoSession> |
getManagedSessions()
Returns the map of all sessions which are currently managed by this service.
|
IoSessionConfig |
getSessionConfig()
Returns the default configuration of the new
IoSession s created by this service. |
void |
setFilters(IoFilter... filters)
Set the list of filters for this service.
|
void |
setIoHandler(IoHandler handler)
Set the
IoHandler in charge of your business logic for this service. |
Map<Long,IoSession> getManagedSessions()
ID
of the session.void setIoHandler(IoHandler handler)
IoHandler
in charge of your business logic for this service.handler
- the handler called for every event of the service (new connections, messages received, etc..)IoHandler getIoHandler()
IoHandler
in charge of your business logic for this service.IoHandlerExecutor getIoHandlerExecutor()
IoHandlerExecutor
used for executing IoHandler
events in another pool of thread (not in
the low level I/O one).IoFilter[] getFilters()
void setFilters(IoFilter... filters)
The
- list of filters to inject in the filters chainIoSessionConfig getSessionConfig()
IoSession
s created by this service.IoService
Copyright © 2009–2013 Apache MINA Project. All rights reserved.