public class NamedThreadFactory extends Object implements ThreadFactory
| Constructor and Description |
|---|
NamedThreadFactory(AtomicInteger threadIndex,
String threadNamePrefix,
boolean isDemoThread) |
NamedThreadFactory(String threadNamePrefix) |
NamedThreadFactory(String threadNamePrefix,
boolean isDemoThread) |
public NamedThreadFactory(String threadNamePrefix, boolean isDemoThread)
public NamedThreadFactory(AtomicInteger threadIndex, String threadNamePrefix, boolean isDemoThread)
public NamedThreadFactory(String threadNamePrefix)
public Thread newThread(Runnable r)
Thread. Implementations may also initialize priority, name, daemon status, ThreadGroup, etc.newThread in interface ThreadFactoryr - a runnable to be executed by new thread instancenull if the request to create a thread is rejectedCopyright © 2023. All rights reserved.