Package org.apache.mina.core.service
Interface IoServiceListener
-
- All Superinterfaces:
EventListener
public interface IoServiceListener extends EventListener
Listens to events related to anIoService.- Author:
- Apache MINA Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidserviceActivated(IoService service)Invoked when a new service is activated by anIoService.voidserviceDeactivated(IoService service)Invoked when a service is deactivated by anIoService.voidserviceIdle(IoService service, IdleStatus idleStatus)Invoked when a service is idle.voidsessionClosed(IoSession session)Invoked when a new session is closed by anIoService.voidsessionCreated(IoSession session)Invoked when a new session is created by anIoService.voidsessionDestroyed(IoSession session)Invoked when a session is being destroyed by anIoService.
-
-
-
Method Detail
-
serviceActivated
void serviceActivated(IoService service) throws Exception
Invoked when a new service is activated by anIoService.
-
serviceIdle
void serviceIdle(IoService service, IdleStatus idleStatus) throws Exception
Invoked when a service is idle.
-
serviceDeactivated
void serviceDeactivated(IoService service) throws Exception
Invoked when a service is deactivated by anIoService.
-
sessionCreated
void sessionCreated(IoSession session) throws Exception
Invoked when a new session is created by anIoService.- Parameters:
session- the new session- Throws:
Exception- if an error occurred while the session is being created
-
sessionClosed
void sessionClosed(IoSession session) throws Exception
Invoked when a new session is closed by anIoService.- Parameters:
session- the new session- Throws:
Exception- if an error occurred while the session is being closed
-
-