@Override public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) { try { // register the client socket channel in selector beyond this final ClientProcessData data = ((ThreadWorker)r).data; data.clientSocket.getSocketChannel().configureBlocking(false); registerClientDataInNextSelector(data); } catch (IOException ioe) { if (!stopped) { LOGGER.warn("Transport error occurred during " + "acceptance of connection.", ioe); } } } };