public class NamedThreadFactory extends Object implements ThreadFactory
| Constructor and Description |
|---|
NamedThreadFactory(ThreadFactory threadFactory,
String name)
Creates a new NamedThreadFactory object.
|
| Modifier and Type | Method and Description |
|---|---|
static ThreadPoolExecutor |
decorate(ThreadPoolExecutor executor,
String pName)
Decorates the given thread pool executor with a named thread factory.
|
Thread |
newThread(Runnable runnable) |
public NamedThreadFactory(ThreadFactory threadFactory, String name)
threadFactory - Factory to decoratename - Namepublic static ThreadPoolExecutor decorate(ThreadPoolExecutor executor, String pName)
executor - Executor to decorate.public Thread newThread(Runnable runnable)
newThread in interface ThreadFactoryCopyright © 2014. All Rights Reserved.