Decorator to Executors#defaultThreadFactory() that make thread as daemon.
Thread#setDaemon(boolean) as true
Thread
| Modifier and Type | Field and Description |
|---|---|
| public static final DaemonThreadFactory | INSTANCE
The singleton instance to |
| private final ThreadFactory |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Thread | newThread(Runnable runnable)
Implements java. Constructs a new unstarted |
| public static DaemonThreadFactory | |
| public static DaemonThreadFactory[] |
| INSTANCE | back to summary |
|---|---|
| public static final DaemonThreadFactory INSTANCE The singleton instance to | |
| threadFactory | back to summary |
|---|---|
| private final ThreadFactory threadFactory | |
| DaemonThreadFactory | back to summary |
|---|---|
| private DaemonThreadFactory() | |
| newThread | back to summary |
|---|---|
| public Thread newThread(Runnable runnable) Implements java. Doc from java. Constructs a new unstarted
| |
| valueOf | back to summary |
|---|---|
| public static DaemonThreadFactory valueOf(String name) | |
| values | back to summary |
|---|---|
| public static DaemonThreadFactory[] values() | |