public void addSession ( AbstractIoSession session ) { sessions . add ( session ) ; CloseFuture closeFuture = session . getCloseFuture ( ) ; // isn't service reponsability to remove the session nicely ? closeFuture . addListener ( sessionCloseListener ) ; }
Add the session for being checked for idle .