Package com.saperion.common.lang.threads
Class Threads
java.lang.Object
com.saperion.common.lang.threads.Threads
Utility class for thread treatment.
- Author:
- dam, agz
-
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadFactory
Creates a newThreadFactory
which only creates daemonThreads
.
-
Method Details
-
newDaemonThreadFactory
Creates a newThreadFactory
which only creates daemonThreads
. So the JVM will shutdown nevertheless if there are submitted jobs.- Returns:
- new
ThreadFactory
for creating daemonThreads
-