public final class DaemonThreadFactory extends Object implements ThreadFactory
ThreadFactory
implementation that starts all Thread
as daemons.Constructor and Description |
---|
DaemonThreadFactory(String threadName)
Constructs a new
DaemonThreadFactory . |
public DaemonThreadFactory(String threadName)
DaemonThreadFactory
.threadName
- used to prefix all thread names.public Thread newThread(Runnable r)
newThread
in interface ThreadFactory