public class NamingThreadFactory extends Object implements ThreadFactory
| Constructor and Description |
|---|
NamingThreadFactory(ThreadFactory delegate,
String name)
Creates a new naming factory.
|
public NamingThreadFactory(ThreadFactory delegate, String name)
delegate - a baseline factory, such as Executors.defaultThreadFactory() or DaemonThreadFactoryname - an identifier to be used in thread names; might be e.g. your Class.getSimpleName()public Thread newThread(Runnable r)
newThread in interface ThreadFactoryCopyright © 2004–2020. All rights reserved.