sessionCreated
public void sessionCreated(IoSession session)
throws Exception
Invoked from an I/O processor thread when a new connection has been created.
Because this method is supposed to be called from the same thread that
handles I/O of multiple sessions, please implement this method to perform
tasks that consumes minimal amount of time such as socket parameter
and user-defined session attribute initialization.
- Specified by:
sessionCreated
in interface IoHandler
- Overrides:
sessionCreated
in class ClientConnectionHandler
- Throws:
Exception