Class ThreadRefInfo

java.lang.Object
io.perfmark.impl.ThreadInfo
io.perfmark.impl.ThreadRefInfo

final class ThreadRefInfo extends ThreadInfo
  • Field Details

    • threadRef

      private final ThreadRef threadRef
    • threadName

      private volatile String threadName
    • threadId

      private volatile long threadId
  • Constructor Details

    • ThreadRefInfo

      ThreadRefInfo(ThreadRef threadRef)
  • Method Details

    • getName

      public String getName()
      Description copied from class: ThreadInfo
      The most recent name of the thread. Non-null.
      Specified by:
      getName in class ThreadInfo
    • getId

      public long getId()
      Description copied from class: ThreadInfo
      The most recent ID of the thread.
      Specified by:
      getId in class ThreadInfo
    • maybeUpdateThreadName

      private String maybeUpdateThreadName(String tName, String localThreadName)
    • maybeUpdateThreadId

      private long maybeUpdateThreadId(long threadId, long localThreadId)
    • isTerminated

      public boolean isTerminated()
      Description copied from class: ThreadInfo
      Returns true if the thread has been GC'd or is terminated.
      Specified by:
      isTerminated in class ThreadInfo
    • isCurrentThread

      public boolean isCurrentThread()
      Specified by:
      isCurrentThread in class ThreadInfo