Example usage for io.netty.util.concurrent FastThreadLocalThread FastThreadLocalThread

List of usage examples for io.netty.util.concurrent FastThreadLocalThread FastThreadLocalThread

Introduction

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

Prototype

public FastThreadLocalThread(ThreadGroup group, Runnable target, String name) 

Source Link

Usage

From source file:org.apache.cassandra.concurrent.NamedThreadFactory.java

License:Apache License

public static Thread createThread(ThreadGroup threadGroup, Runnable runnable, String name, boolean daemon) {
    Thread thread = new FastThreadLocalThread(threadGroup, threadLocalDeallocator(runnable), name);
    thread.setDaemon(daemon);/*  w ww . j a va 2 s  . c o  m*/
    return thread;
}