public final class ThreadUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.Thread |
makeDaemonThread(java.lang.Runnable runnable)
Creates a daemon thread to run the given runnable.
|
static java.util.concurrent.ScheduledExecutorService |
newDaemonScheduledExecutorService()
A single-threaded ScheduledExecutorService that uses a daemon thread instead of one the doesn't respect shutdown.
|
public static java.util.concurrent.ScheduledExecutorService newDaemonScheduledExecutorService()
public static java.lang.Thread makeDaemonThread(java.lang.Runnable runnable)