Example usage for io.netty.util.concurrent ThreadProperties name

List of usage examples for io.netty.util.concurrent ThreadProperties name

Introduction

In this page you can find the example usage for io.netty.util.concurrent ThreadProperties name.

Prototype

String name();

Source Link

Usage

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

License:Apache License

private String workerThreadStat(NioEventLoop worker) {
    StringBuilder tmp = new StringBuilder();
    if (AssertUtil.isNotNull(worker)) {
        ThreadProperties tp = worker.threadProperties();
        tmp.append(String.format(threadinfoFmt, tp.id(), tp.name(), tp.priority(), tp.state().name()));
    }/*from  w w w .  j  a  v  a2  s .co m*/
    return tmp.toString();
}