Example usage for io.netty.channel.kqueue KQueueEventLoopGroup setIoRatio

List of usage examples for io.netty.channel.kqueue KQueueEventLoopGroup setIoRatio

Introduction

In this page you can find the example usage for io.netty.channel.kqueue KQueueEventLoopGroup setIoRatio.

Prototype

public void setIoRatio(int ioRatio) 

Source Link

Document

Sets the percentage of the desired amount of time spent for I/O in the child event loops.

Usage

From source file:io.vertx.core.net.impl.transport.KQueueTransport.java

License:Open Source License

@Override
public EventLoopGroup eventLoopGroup(int nThreads, ThreadFactory threadFactory, int ioRatio) {
    KQueueEventLoopGroup eventLoopGroup = new KQueueEventLoopGroup(nThreads, threadFactory);
    eventLoopGroup.setIoRatio(ioRatio);
    return eventLoopGroup;
}