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

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

Introduction

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

Prototype

public final ThreadProperties threadProperties() 

Source Link

Document

Returns the ThreadProperties of the Thread that powers the SingleThreadEventExecutor .

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  www.j av  a2  s.com
    return tmp.toString();
}