350351352353354355356357358359360
*/ ReactiveAsyncKey register(SelectableChannel ch) throws IOException { synchronized (selectorLock) { if (lifecycleState != RUNNING) { throw new ShutdownChannelGroupException(); } selector.wakeup(); SelectionKey key = ch.register(selector, 0);
183184185186187188189190191192193
ch.configureBlocking(false); AsyncKey asyncKey = null; Reactor reactor = null; synchronized (stateLock) { if (lifecycleState != RUNNING) { throw new ShutdownChannelGroupException(); } reactor = reactorAssignmentStrategy.getReactorFor(ch); }
352353354355356357358359360361362
185186187188189190191192193194195