示例#1
0
 /*
  * (non-Javadoc)
  *
  * @see com.yz.net.management.IoSessionMBean#isSessionClosed()
  */
 @Override
 public boolean isSessionClosed() {
   if (session != null) return session.isClose();
   return Boolean.FALSE;
 }
示例#2
0
 /*
  * (non-Javadoc)
  *
  * @see com.yz.net.management.IoSessionMBean#close()
  */
 @Override
 public void close() {
   if (session != null && !session.isClose()) {
     session.close();
   }
 }