Package org.openrefine.util
Class NamingThreadFactory
- java.lang.Object
-
- org.openrefine.util.NamingThreadFactory
-
- All Implemented Interfaces:
ThreadFactory
public class NamingThreadFactory extends Object implements ThreadFactory
A utility to name the threads in aThreadPoolExecutor
.
-
-
Constructor Summary
Constructors Constructor Description NamingThreadFactory(String namePrefix)
-
-
-
Constructor Detail
-
NamingThreadFactory
public NamingThreadFactory(String namePrefix)
-
-
Method Detail
-
newThread
public Thread newThread(Runnable r)
- Specified by:
newThread
in interfaceThreadFactory
-
-