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