Class MarkRecorderRef

java.lang.Object
io.perfmark.impl.MarkRecorderRef

public final class MarkRecorderRef extends Object
Represents a MarkRecorder ID and the Thread that created it.
  • Field Details

    • markRecorderAlloc

      private static final AtomicLong markRecorderAlloc
    • markRecorderId

      private final long markRecorderId
    • threadInfo

      private final ThreadInfo threadInfo
  • Constructor Details

    • MarkRecorderRef

      private MarkRecorderRef(long markRecorderId, ThreadInfo threadInfo)
  • Method Details

    • allocateMarkRecorderId

      public static long allocateMarkRecorderId()
    • newRef

      public static MarkRecorderRef newRef(ThreadInfo threadInfo)
      Creates a new MarkRecorderRef that can update the thread name and ID from the given Thread Reference.
    • newRef

      public static MarkRecorderRef newRef()
      Creates a new MarkRecorderRef that can update the thread name and ID from the current thread.
    • markRecorderId

      public long markRecorderId()
    • threadInfo

      public ThreadInfo threadInfo()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object