Example #1
0
 @Override
 public void sessionIdle(IoSession session, IdleStatus status) throws Exception {
   Object userSid = session.getAttribute(BaseHandler.ATTR_USER_SID);
   if (userSid != null) {
     logger.debug("===> sessionIdle:" + userSid.toString());
   }
   session.closeOnFlush();
 }
Example #2
0
 @Override
 public void inputClosed(IoSession session) throws Exception {
   session.closeOnFlush();
 }
Example #3
0
 @Override
 public void exceptionCaught(IoSession session, Throwable cause) throws Exception {
   logger.error(cause.getMessage());
   session.closeOnFlush();
 }