Example usage for io.netty.util.concurrent MultithreadEventExecutorGroup executorCount

List of usage examples for io.netty.util.concurrent MultithreadEventExecutorGroup executorCount

Introduction

In this page you can find the example usage for io.netty.util.concurrent MultithreadEventExecutorGroup executorCount.

Prototype

public final int executorCount() 

Source Link

Document

Return the number of EventExecutor this implementation uses.

Usage

From source file:io.gatling.http.client.impl.AffinityEventLoopPicker.java

License:Apache License

AffinityEventLoopPicker(MultithreadEventExecutorGroup eventLoopGroup) {
    eventLoops = new EventLoop[eventLoopGroup.executorCount()];
    int i = 0;/*from   w  w w . j a v  a  2s.  c  o  m*/
    for (EventExecutor loop : eventLoopGroup) {
        eventLoops[i++] = (EventLoop) loop;
    }
}