コード例 #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();
   }
 }