Package com.swoval.concurrent
Class ThreadFactory
- java.lang.Object
-
- com.swoval.concurrent.ThreadFactory
-
- All Implemented Interfaces:
java.util.concurrent.ThreadFactory
public class ThreadFactory extends java.lang.Object implements java.util.concurrent.ThreadFactoryProvides a thread factory that names the threads with a given prefix.
-
-
Constructor Summary
Constructors Constructor Description ThreadFactory(java.lang.String name)Creates a new ThreadFactor with thread name prefix.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThreadnewThread(java.lang.Runnable r)
-