public static final class ThreadPool.ThreadPoolThreadFactory extends Object implements ThreadFactory
| Constructor and Description |
|---|
ThreadPoolThreadFactory(String poolName)
Initializes a new instance.
|
public ThreadPoolThreadFactory(String poolName)
poolName - The name of the pool, which will be prepended to each thread name.public Thread newThread(Runnable r)
java.util.concurrent.ThreadFactoryThread. 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 rejected