Class ThreadRegistry

  • public class ThreadRegistry
    extends java.lang.Object
    For mapping thread ids to thread pools and threads within those pools or just for lone named threads. Thread scoped metrics add labels to metrics by retrieving the ThreadPoolThread object from this registry. For flexibility, this registry is not based on TLS.
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void clear()  
      static ThreadRegistry.ThreadPoolThread get()  
      static void register​(java.lang.String threadPool, int threadPoolThread)  
      static void register​(java.lang.String threadPool, int threadPoolThread, long threadId)  
      • Methods inherited from class java.lang.Object

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

      • ThreadRegistry

        public ThreadRegistry()
    • Method Detail

      • register

        public static void register​(java.lang.String threadPool,
                                    int threadPoolThread)
      • register

        public static void register​(java.lang.String threadPool,
                                    int threadPoolThread,
                                    long threadId)
      • clear

        public static void clear()