public interface IoServiceListener
extends java.util.EventListener
IoFuture becomes available.| Modifier and Type | Method and Description |
|---|---|
void |
serviceActivated(IoService service,
java.net.SocketAddress serviceAddress,
IoHandler handler,
IoServiceConfig config)
Invoked when a new service is activated by an
IoService. |
void |
serviceDeactivated(IoService service,
java.net.SocketAddress serviceAddress,
IoHandler handler,
IoServiceConfig config)
Invoked when a service is deactivated by an
IoService. |
void |
sessionCreated(IoSession session)
Invoked when a new session is created by an
IoService. |
void |
sessionDestroyed(IoSession session)
Invoked when a session is being destroyed by an
IoService. |
void serviceActivated(IoService service, java.net.SocketAddress serviceAddress, IoHandler handler, IoServiceConfig config)
IoService.service - the IoServiceserviceAddress - the socket address of the IoService listens
to manage sessions. If the service is an IoAcceptor,
it is a bind address. If the service is an IoConnector,
it is a remote address.handler - the IoHandler that serves the new serviceconfig - the IoServiceConfig of the new servicevoid serviceDeactivated(IoService service, java.net.SocketAddress serviceAddress, IoHandler handler, IoServiceConfig config)
IoService.service - the IoServiceserviceAddress - the socket address of the IoService listens
to manage sessions. If the service is an IoAcceptor,
it is a bind address. If the service is an IoConnector,
it is a remote address.handler - the IoHandler that serves the serviceconfig - the IoServiceConfig of the servicevoid sessionCreated(IoSession session)
IoService.session - the new session