Package io.perfmark.impl
Class MarkHolderProvider
- java.lang.Object
-
- io.perfmark.impl.MarkHolderProvider
-
public abstract class MarkHolderProvider extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMarkHolderProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MarkHoldercreate()Deprecated.MarkHoldercreate(long markHolderId)Creates a new MarkHolder.
-
-
-
Method Detail
-
create
@Deprecated public MarkHolder create()
Deprecated.To be removed in 0.26.0- Returns:
- the new MarkHolder for the current thread.
-
create
public MarkHolder create(long markHolderId)
Creates a new MarkHolder. Mark holders are always mutated by the thread that created them, (e.g. THIS thread), but may be read by other threads.- Parameters:
markHolderId- the Unique ID associated with the Mark Holder. This exists as a work around to Java's thread ID, which does not guarantee they will not be reused.- Returns:
- the new MarkHolder for the current thread.
- Since:
- 0.24.0
-
-