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

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

Introduction

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

Prototype

long id();

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()));
    }/*  w ww. j  av a2  s.c o m*/
    return tmp.toString();
}