private void doAddNew() { Selector selector = this.selector; for (;;) { SocketSessionImpl session = newSessions.poll(); if (session == null) break; SocketChannel ch = session.getChannel(); try { ch.configureBlocking(false); session.setSelectionKey(ch.register(selector, SelectionKey.OP_READ, session)); // AbstractIoFilterChain.CONNECT_FUTURE is cleared inside here // in AbstractIoFilterChain.fireSessionOpened(). session.getServiceListeners().fireSessionCreated(session); } catch (IOException e) { // Clear the AbstractIoFilterChain.CONNECT_FUTURE attribute // and call ConnectFuture.setException(). session.getFilterChain().fireExceptionCaught(session, e); } } }
getListeners().fireSessionCreated(session); } catch (Throwable t) { ExceptionMonitor.getInstance().exceptionCaught(t);
getListeners().fireSessionCreated(session); success = true; } catch (Throwable t) {
getListeners().fireSessionCreated(localSession); VmPipeIdleStatusChecker.getInstance().addSession(localSession); } catch (Throwable t) { entry.getListeners().fireSessionCreated(remoteSession); VmPipeIdleStatusChecker.getInstance().addSession(remoteSession); } catch (Throwable t) {