예제 #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();
 }
예제 #2
0
 @Override
 public void inputClosed(IoSession session) throws Exception {
   session.closeOnFlush();
 }
예제 #3
0
 @Override
 public void exceptionCaught(IoSession session, Throwable cause) throws Exception {
   logger.error(cause.getMessage());
   session.closeOnFlush();
 }