Package generic.util

Class NamedDaemonThreadFactory

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

    public class NamedDaemonThreadFactory
    extends java.lang.Object
    implements java.util.concurrent.ThreadFactory
    NamedDaemonThreadFactory is a thread factory which forms daemon threads with a specified name prefix for the Java concurrent Executors pools.
    • Method Summary

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

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

      • NamedDaemonThreadFactory

        public NamedDaemonThreadFactory​(java.lang.String name)
    • Method Detail

      • newThread

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