public final class ThreadFactory extends Object implements ThreadFactory
ThreadFactory
which sets the thread name to an unique name.
The thread name uses the following syntax name #counter, where counter in an unique counter, starting from 1.Constructor and Description |
---|
ThreadFactory(String name)
Prefix of the thread name
|
public ThreadFactory(String name)
public Thread newThread(Runnable r)
newThread
in interface ThreadFactory
Copyright © 2011–2016 Red Hat. All rights reserved.