/** * Creates a version of the default thread factory from * {@code Executors.defaultThreadFactory()} that creates daemon threads. * Daemon threads mean that the application can exit even if the threads * are still alive. * * @return * A default thread factory that creates daemon threads. */ public static ThreadFactory defaultDaemonThreadFactory() { return new DaemonThreadFactory(Executors.defaultThreadFactory()); }
/** * Creates a version of the default thread factory from * {@code Executors.defaultThreadFactory()} that creates daemon threads. * Daemon threads mean that the application can exit even if the threads * are still alive. * * @return * A default thread factory that creates daemon threads. */ public static ThreadFactory defaultDaemonThreadFactory() { return new DaemonThreadFactory(Executors.defaultThreadFactory()); }
/** * Creates a version of the default thread factory from * {@code Executors.defaultThreadFactory()} that creates daemon threads. * Daemon threads mean that the application can exit even if the threads * are still alive. * * @return * A default thread factory that creates daemon threads. */ public static ThreadFactory defaultDaemonThreadFactory() { return new DaemonThreadFactory(Executors.defaultThreadFactory()); }