Package io.perfmark.impl
Class MarkRecorderRef
- java.lang.Object
-
- io.perfmark.impl.MarkRecorderRef
-
public final class MarkRecorderRef extends java.lang.ObjectRepresents a MarkRecorder ID and the Thread that created it.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static longallocateMarkRecorderId()booleanequals(java.lang.Object o)inthashCode()longmarkRecorderId()static MarkRecorderRefnewRef()Creates a new MarkRecorderRef that can update the thread name and ID from the current thread.static MarkRecorderRefnewRef(ThreadInfo threadInfo)Creates a new MarkRecorderRef that can update the thread name and ID from the given Thread Reference.ThreadInfothreadInfo()java.lang.StringtoString()
-
-
-
Method Detail
-
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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-