public interface IoServiceListener extends EventListener
IoService
.Modifier and Type | Method and Description |
---|---|
void |
serviceActivated(IoService service)
Invoked when a new service is activated by an
IoService . |
void |
serviceDeactivated(IoService service)
Invoked when a service is deactivated by an
IoService . |
void |
serviceIdle(IoService service,
IdleStatus idleStatus)
Invoked when a service is idle.
|
void |
sessionClosed(IoSession session)
Invoked when a new session is closed 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) throws Exception
IoService
.void serviceIdle(IoService service, IdleStatus idleStatus) throws Exception
void serviceDeactivated(IoService service) throws Exception
IoService
.void sessionCreated(IoSession session) throws Exception
IoService
.session
- the new sessionException
- if an error occurred while the session is being createdvoid sessionClosed(IoSession session) throws Exception
IoService
.session
- the new sessionException
- if an error occurred while the session is being closedCopyright © 2004–2021 Apache MINA Project. All rights reserved.