Class DaemonThreadFactory
- java.lang.Object
-
- org.apache.maven.surefire.api.util.internal.DaemonThreadFactory
-
- All Implemented Interfaces:
ThreadFactory
public final class DaemonThreadFactory extends Object implements ThreadFactory
Creates new daemon Thread.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Thread
newDaemonThread(Runnable r)
static Thread
newDaemonThread(Runnable r, String name)
static ThreadFactory
newDaemonThreadFactory()
Should be used by thread pools.static ThreadFactory
newDaemonThreadFactory(String name)
Thread
newThread(Runnable r)
-
-
-
Method Detail
-
newThread
public Thread newThread(Runnable r)
- Specified by:
newThread
in interfaceThreadFactory
-
newDaemonThreadFactory
public static ThreadFactory newDaemonThreadFactory()
Should be used by thread pools.- Returns:
- new instance of
ThreadFactory
where eachthread
is daemon
-
newDaemonThreadFactory
public static ThreadFactory newDaemonThreadFactory(String name)
-
-