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 Summary
Modifier and TypeMethodDescriptionaddExecutionTimeMs(long execTimeMs) Adds an execution time in milliseconds.voidclose()Closes the collector, tries to persist it.default Collector.DatapointConstructorMeasures the execution ofprg.
-
Method Details
-
addExecutionTimeMs
Adds an execution time in milliseconds.- Parameters:
execTimeMs- the execution time in milliseconds- Returns:
- this (builder style)
-
measureMs
Measures the execution ofprg.- Parameters:
run- the runnable to execute- Returns:
- this (builder style)
- See Also:
-
close
void close()Closes the collector, tries to persist it.
-