@Override
    public Thread newThread(Runnable r) {
        Thread t = new Thread(r);
        t.setDaemon(this.daemon);
        t.setUncaughtExceptionHandler(UNCAUGHT_EX_HANDLER);
        t.setName(this.prefix + counter.getAndIncrement());
        return t;
    }
Named thread factory with prefix.

@author boyan (boyan@alibaba-inc.com)

2018-Mar-21 11:32:02 AM
jraft-core/src/main/java/com/alipay/sofa/jraft/util/NamedThreadFactory.java