Example usage for io.netty.channel.nio NioEventLoop getIoRatio

List of usage examples for io.netty.channel.nio NioEventLoop getIoRatio

Introduction

In this page you can find the example usage for io.netty.channel.nio NioEventLoop getIoRatio.

Prototype

public int getIoRatio() 

Source Link

Document

Returns the percentage of the desired amount of time spent for I/O in the event loop.

Usage

From source file:cn.wantedonline.puppy.httpserver.stat.NioWorkerStat.java

License:Apache License

private String workerTaskStat(NioEventLoop w) {
    StringBuilder tmp = new StringBuilder();
    if (AssertUtil.isNotNull(w)) {
        tmp.append(String.format(taskinfoFmt, w.pendingTasks(), w.getIoRatio(), NioWorkerStatus(w)));
    }//from www .  ja  va  2  s.  co  m
    return tmp.toString();
}