publicclassNioEventLoopGroupextendsMultithreadEventLoopGroup{ /** * Sets the percentage of the desired amount of time spent for I/O in the child event loops. The default value is * {@code 50}, which means the event loop will try to spend the same amount of time for I/O as for non-I/O tasks. */ publicvoidsetIoRatio(int ioRatio) { for (EventExecutor e: children()) { ((NioEventLoop) e).setIoRatio(ioRatio); } } /** * Replaces the current {@link Selector}s of the child event loops with newly created {@link Selector}s to work * around the infamous epoll 100% CPU bug. */ publicvoidrebuildSelectors() { for (EventExecutor e: children()) { ((NioEventLoop) e).rebuildSelector(); } }