Class MarkList.Builder
java.lang.Object
io.perfmark.impl.MarkList.Builder
- Enclosing class:
MarkList
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) long(package private) long(package private) String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()setMarkRecorderId(long markRecorderId) Sets the MarkRecorder ID for this MarkList builder.Sets the marks for this MarkList builder.setThreadId(long threadId) Sets the thread ID for this MarkList builder.setThreadName(String threadName) Sets the thread name for this MarkList builder.
-
Field Details
-
marks
-
threadName
String threadName -
threadId
long threadId -
markRecorderId
long markRecorderId
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
-
setMarks
Sets the marks for this MarkList builder. This method always makes a defensive copy. This method never retains a reference to the list.- Parameters:
marks- the marks to set.- Returns:
- this
- Throws:
NullPointerException- if any element in this list isnull.
-
setThreadName
Sets the thread name for this MarkList builder.- Parameters:
threadName- the Thread Name- Returns:
- this
-
setThreadId
Sets the thread ID for this MarkList builder.- Parameters:
threadId- the Thread Id- Returns:
- this
-
setMarkRecorderId
Sets the MarkRecorder ID for this MarkList builder.- Parameters:
markRecorderId- the MarkRecorder ID- Returns:
- this
-