Package io.nosqlbench.engine.core
Class IndexedThreadFactory
java.lang.Object
io.nosqlbench.engine.core.IndexedThreadFactory
- All Implemented Interfaces:
java.util.concurrent.ThreadFactory
public class IndexedThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory
A named and indexed thread factory, making threads within a thread pool
have the same name and a unique integer index
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classIndexedThreadFactory.IndexedThread -
Constructor Summary
Constructors Constructor Description IndexedThreadFactory(java.lang.String name, java.lang.Thread.UncaughtExceptionHandler exceptionHandler) -
Method Summary
Modifier and Type Method Description IndexedThreadFactory.IndexedThreadnewThread(java.lang.Runnable r)
-
Constructor Details
-
IndexedThreadFactory
public IndexedThreadFactory(java.lang.String name, java.lang.Thread.UncaughtExceptionHandler exceptionHandler)
-
-
Method Details
-
newThread
- Specified by:
newThreadin interfacejava.util.concurrent.ThreadFactory
-