Class NamedThreadFactory

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

    public class NamedThreadFactory
    extends java.lang.Object
    implements java.util.concurrent.ThreadFactory
    A simple thread factory that uses a custom name prefix.
    • Constructor Summary

      Constructors 
      Constructor Description
      NamedThreadFactory​(java.lang.String name)  
      NamedThreadFactory​(java.lang.String name, boolean useDaemonThreads)  
    • 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

      • NamedThreadFactory

        public NamedThreadFactory​(java.lang.String name)
      • NamedThreadFactory

        public NamedThreadFactory​(java.lang.String name,
                                  boolean useDaemonThreads)
    • Method Detail

      • newThread

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