List of usage examples for io.netty.channel.nio NioEventLoopGroup iterator
@Override
public Iterator<EventExecutor> iterator()
From source file:cn.wantedonline.puppy.httpserver.stat.NioWorkerStat.java
License:Apache License
public void registerWorkers(NioEventLoopGroup eventLoopGroup) { Iterator<EventExecutor> iterator = eventLoopGroup.iterator(); workExecutors = new ArrayList<>(eventLoopGroup.executorCount()); while (iterator.hasNext()) { workExecutors.add((NioEventLoop) iterator.next()); }//www . ja v a 2 s . c om inited = true; }