Class DaemonThreadFactory

  • All Implemented Interfaces:
    java.util.concurrent.ThreadFactory

    public class DaemonThreadFactory
    extends java.lang.Object
    implements java.util.concurrent.ThreadFactory
    Thread factory whose threads are marked as daemon and won't prevent process exit.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Thread newThread​(java.lang.Runnable runnable)  
      • Methods inherited from class java.lang.Object

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

      • DaemonThreadFactory

        public DaemonThreadFactory​(@Nullable
                                   java.lang.String name)
      • DaemonThreadFactory

        public DaemonThreadFactory()
    • Method Detail

      • newThread

        public java.lang.Thread newThread​(@Nonnull
                                          java.lang.Runnable runnable)
        Specified by:
        newThread in interface java.util.concurrent.ThreadFactory