public class DaemonThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory
Modifier and Type | Field and Description |
---|---|
private static DaemonThreadFactory |
instance
The instance.
|
Modifier | Constructor and Description |
---|---|
private |
DaemonThreadFactory()
Instantiates a new daemon thread factory.
|
Modifier and Type | Method and Description |
---|---|
static DaemonThreadFactory |
getInstance()
Gets the single instance of DaemonThreadFactory.
|
java.lang.Thread |
newThread(java.lang.Runnable arg0) |
private static DaemonThreadFactory instance
private DaemonThreadFactory()
public static DaemonThreadFactory getInstance()
public java.lang.Thread newThread(java.lang.Runnable arg0)
newThread
in interface java.util.concurrent.ThreadFactory