Class IndexedThreadFactory

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

    public class IndexedThreadFactory
    extends java.lang.Object
    implements java.util.concurrent.ThreadFactory
    A named and indexed thread factory, making threads within a thread pool have the same name and a unique integer index
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexedThreadFactory​(java.lang.String name, java.lang.Thread.UncaughtExceptionHandler exceptionHandler)  
    • Method Summary

      Modifier and Type Method Description
      IndexedThreadFactory.IndexedThread 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

      • IndexedThreadFactory

        public IndexedThreadFactory​(java.lang.String name,
                                    java.lang.Thread.UncaughtExceptionHandler exceptionHandler)