Class ThreadNameInfo


  • public class ThreadNameInfo
    extends java.lang.Object
    Author:
    Galder ZamarreƱo
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(java.lang.Thread thread, java.lang.String formatString)
      Format the thread name string.
      • Methods inherited from class java.lang.Object

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

      • format

        public java.lang.String format​(java.lang.Thread thread,
                                       java.lang.String formatString)
        Format the thread name string.
        • %% - emit a percent sign
        • %t - emit the per-factory thread sequence number
        • %g - emit the global thread sequence number
        • %f - emit the factory sequence number
        • %p - emit the ":"-separated thread group path
        • %i - emit the thread ID
        • %G - emit the thread group name
        • %n - emit the node name
        • %c - emit the component name
        Parameters:
        thread - the thread
        formatString - the format string
        Returns:
        the thread name string