Example usage for io.netty.channel.nio NioEventLoopGroup iterator

List of usage examples for io.netty.channel.nio NioEventLoopGroup iterator

Introduction

In this page you can find the example usage for io.netty.channel.nio NioEventLoopGroup iterator.

Prototype

@Override
    public Iterator<EventExecutor> iterator() 

Source Link

Usage

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;
}