Class Threads


  • public final class Threads
    extends java.lang.Object
    Utility class for thread treatment.
    Author:
    dam, agz
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.concurrent.ThreadFactory newDaemonThreadFactory()
      Creates a new ThreadFactory which only creates daemon Threads.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • newDaemonThreadFactory

        public static java.util.concurrent.ThreadFactory newDaemonThreadFactory()
        Creates a new ThreadFactory which only creates daemon Threads. So the JVM will shutdown nevertheless if there are submitted jobs.
        Returns:
        new ThreadFactory for creating daemon Threads