Package org.apache.mina.core.service
Interface IoServiceListener
-
- All Superinterfaces:
java.util.EventListener
public interface IoServiceListener extends java.util.EventListenerListens 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 java.lang.Exception
Invoked when a new service is activated by anIoService.- Parameters:
service- theIoService- Throws:
java.lang.Exception- if an error occurred while the service is being activated
-
serviceIdle
void serviceIdle(IoService service, IdleStatus idleStatus) throws java.lang.Exception
Invoked when a service is idle.- Parameters:
service- theIoServiceidleStatus- The idle status- Throws:
java.lang.Exception- if an error occurred while the service is being idled
-
serviceDeactivated
void serviceDeactivated(IoService service) throws java.lang.Exception
Invoked when a service is deactivated by anIoService.- Parameters:
service- theIoService- Throws:
java.lang.Exception- if an error occurred while the service is being deactivated
-
sessionCreated
void sessionCreated(IoSession session) throws java.lang.Exception
Invoked when a new session is created by anIoService.- Parameters:
session- the new session- Throws:
java.lang.Exception- if an error occurred while the session is being created
-
sessionClosed
void sessionClosed(IoSession session) throws java.lang.Exception
Invoked when a new session is closed by anIoService.- Parameters:
session- the new session- Throws:
java.lang.Exception- if an error occurred while the session is being closed
-
-