Class NamingThreadFactory

java.lang.Object
io.github.resilience4j.core.NamingThreadFactory
All Implemented Interfaces:
java.util.concurrent.ThreadFactory

public class NamingThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory
Creates threads using "$name-%d" pattern for naming. Is based on Executors.defaultThreadFactory()
  • Constructor Summary

    Constructors 
    Constructor Description
    NamingThreadFactory​(java.lang.String name)  
  • Method Summary

    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 Details

  • Method Details

    • newThread

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