@Override public void handleException(Exception cce, EventLoop el) { teardown(); if (cce instanceof RejectedExecutionException && serverHelperExecutor.isTerminated()) { logger.warn("Terminated Executor Exception for {}.", this, cce); el.disconnect(this); } else { super.handleException(cce, el); } }
@Override public void unregistered(final SelectionKey key) { super.unregistered(key); teardown(); }