Package org.apache.mina.core.service
Interface IoServiceListener
- All Superinterfaces:
EventListener
Listens to events related to an
IoService.-
Method Summary
Modifier and TypeMethodDescriptionvoidserviceActivated(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 Details
-
serviceActivated
Invoked when a new service is activated by anIoService. -
serviceIdle
Invoked when a service is idle. -
serviceDeactivated
Invoked when a service is deactivated by anIoService. -
sessionCreated
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
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
-
sessionDestroyed
Invoked when a session is being destroyed by anIoService.- Parameters:
session- the session to be destroyed- Throws:
Exception- if an error occurred while the session is being destroyed
-