public class NamedFactory extends Object implements ThreadFactory
| Modifier and Type | Field and Description |
|---|---|
protected ThreadGroup |
group
Thread group.
|
protected AtomicInteger |
poolNumber
Pool number.
|
protected AtomicInteger |
threadNumber
Thread number.
|
| Constructor and Description |
|---|
NamedFactory(String poolName)
Friendly constructor.
|
protected final AtomicInteger poolNumber
protected final AtomicInteger threadNumber
protected final ThreadGroup group
public NamedFactory(String poolName)
poolName - The pool name.public Thread newThread(Runnable r)
newThread in interface ThreadFactoryCopyright © 2016. All rights reserved.