static class TestAsyncProcess.CountingThreadFactory extends Object implements ThreadFactory
| Modifier and Type | Field and Description |
|---|---|
(package private) AtomicInteger |
nbThreads |
(package private) ThreadFactory |
realFactory |
| Constructor and Description |
|---|
CountingThreadFactory(AtomicInteger nbThreads) |
final AtomicInteger nbThreads
ThreadFactory realFactory
CountingThreadFactory(AtomicInteger nbThreads)
public Thread newThread(Runnable r)
newThread in interface ThreadFactoryCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.