Package org.apache.mina.common
Interface IoServiceListener
- All Superinterfaces:
EventListener
Something interested in being notified when the result
of an
IoFuture becomes available.-
Method Summary
Modifier and TypeMethodDescriptionvoidserviceActivated(IoService service, SocketAddress serviceAddress, IoHandler handler, IoServiceConfig config) Invoked when a new service is activated by anIoService.voidserviceDeactivated(IoService service, SocketAddress serviceAddress, IoHandler handler, IoServiceConfig config) Invoked when a service is deactivated 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
void serviceActivated(IoService service, SocketAddress serviceAddress, IoHandler handler, IoServiceConfig config) Invoked when a new service is activated by anIoService.- Parameters:
service- theIoServiceserviceAddress- the socket address of theIoServicelistens to manage sessions. If the service is anIoAcceptor, it is a bind address. If the service is anIoConnector, it is a remote address.handler- theIoHandlerthat serves the new serviceconfig- theIoServiceConfigof the new service
-
serviceDeactivated
void serviceDeactivated(IoService service, SocketAddress serviceAddress, IoHandler handler, IoServiceConfig config) Invoked when a service is deactivated by anIoService.- Parameters:
service- theIoServiceserviceAddress- the socket address of theIoServicelistens to manage sessions. If the service is anIoAcceptor, it is a bind address. If the service is anIoConnector, it is a remote address.handler- theIoHandlerthat serves the serviceconfig- theIoServiceConfigof the service
-
sessionCreated
Invoked when a new session is created by anIoService.- Parameters:
session- the new session
-
sessionDestroyed
Invoked when a session is being destroyed by anIoService.- Parameters:
session- the session to be destroyed
-