Esempio n. 1
0
    @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);
      }
    }
Esempio n. 2
0
 @Override
 public void unregistered(final SelectionKey key) {
   super.unregistered(key);
   teardown();
 }