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 void
serviceActivated(IoService service)
Invoked when a new service is activated by anIoService
.void
serviceDeactivated(IoService service)
Invoked when a service is deactivated by anIoService
.void
serviceIdle(IoService service, IdleStatus idleStatus)
Invoked when a service is idle.void
sessionClosed(IoSession session)
Invoked when a new session is closed by anIoService
.void
sessionCreated(IoSession session)
Invoked when a new session is created by anIoService
.void
sessionDestroyed(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
-
-