Package io.virtdata.apps.valuesapp
Class IndexedThreadFactory
- java.lang.Object
-
- io.virtdata.apps.valuesapp.IndexedThreadFactory
-
- All Implemented Interfaces:
java.util.concurrent.ThreadFactory
public class IndexedThreadFactory extends java.lang.Object implements java.util.concurrent.ThreadFactoryA 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexedThreadFactory.IndexedThreadnewThread(java.lang.Runnable r)
-
-
-
Method Detail
-
newThread
public IndexedThreadFactory.IndexedThread newThread(java.lang.Runnable r)
- Specified by:
newThreadin interfacejava.util.concurrent.ThreadFactory
-
-