Class MarkList.Builder

java.lang.Object
io.perfmark.impl.MarkList.Builder
Enclosing class:
MarkList

public static final class MarkList.Builder extends Object
  • Field Details

    • marks

      List<Mark> marks
    • threadName

      String threadName
    • threadId

      long threadId
    • markRecorderId

      long markRecorderId
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public MarkList build()
    • setMarks

      public MarkList.Builder setMarks(List<Mark> marks)
      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 is null.
    • setThreadName

      public MarkList.Builder setThreadName(String threadName)
      Sets the thread name for this MarkList builder.
      Parameters:
      threadName - the Thread Name
      Returns:
      this
    • setThreadId

      public MarkList.Builder setThreadId(long threadId)
      Sets the thread ID for this MarkList builder.
      Parameters:
      threadId - the Thread Id
      Returns:
      this
    • setMarkRecorderId

      public MarkList.Builder setMarkRecorderId(long markRecorderId)
      Sets the MarkRecorder ID for this MarkList builder.
      Parameters:
      markRecorderId - the MarkRecorder ID
      Returns:
      this