public class DaemonThreadFactory extends Object implements ThreadFactory
Daemon threads do not stop a JVM stopping. If an application only has Daemon threads left it will shutdown.
In using Daemon threads you need to either not care about being interrupted on shutdown or register with the JVM shutdown hook to perform a nice shutdown of the daemon threads etc.
| Constructor and Description |
|---|
DaemonThreadFactory(String namePrefix) |
public DaemonThreadFactory(String namePrefix)
public Thread newThread(Runnable r)
newThread in interface ThreadFactoryCopyright © 2014. All Rights Reserved.