Class ThreadRefInfo

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getId()
      The most recent ID of the thread.
      java.lang.String getName()
      The most recent name of the thread.
      boolean isCurrentThread()  
      boolean isTerminated()
      Returns true if the thread has been GC'd or is terminated.
      private long maybeUpdateThreadId​(long threadId, long localThreadId)  
      private java.lang.String maybeUpdateThreadName​(java.lang.String tName, java.lang.String localThreadName)  
      • Methods inherited from class java.lang.Object

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

      • threadRef

        private final ThreadRef threadRef
      • threadName

        private volatile java.lang.String threadName
      • threadId

        private volatile long threadId
    • Constructor Detail

      • ThreadRefInfo

        ThreadRefInfo​(ThreadRef threadRef)
    • Method Detail

      • getName

        public java.lang.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 java.lang.String maybeUpdateThreadName​(java.lang.String tName,
                                                       java.lang.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