Class NameableThreadFactory

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

    public class NameableThreadFactory
    extends java.lang.Object
    implements java.util.concurrent.ThreadFactory
    Implements a thread factory
    • Constructor Summary

      Constructors 
      Constructor Description
      NameableThreadFactory​(java.lang.String baseName)
      Constructor for NameableThreadFactory
    • 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

      • NameableThreadFactory

        public NameableThreadFactory​(java.lang.String baseName)
        Constructor for NameableThreadFactory
        Parameters:
        baseName - the base name
    • Method Detail

      • newThread

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