Interface Collector.DatapointConstructor

All Known Implementing Classes:
Collector.CsvDatapointConstructor
Enclosing class:
Collector

public static interface Collector.DatapointConstructor
A datapoint constructor.
Author:
Holger Eichelberger, SSE
  • Method Details

    • addExecutionTimeMs

      Collector.DatapointConstructor addExecutionTimeMs(long execTimeMs)
      Adds an execution time in milliseconds.
      Parameters:
      execTimeMs - the execution time in milliseconds
      Returns:
      this (builder style)
    • measureMs

      default Collector.DatapointConstructor measureMs(Runnable run)
      Measures the execution of prg.
      Parameters:
      run - the runnable to execute
      Returns:
      this (builder style)
      See Also:
    • close

      void close()
      Closes the collector, tries to persist it.