Interface BiConsumer
public interface BiConsumer
Functional-style BiConsumer used by internal harness code to represent
a benchmark invocation that accepts a time budget and a records limit.
Implementations should perform the selected benchmark variant and may throw EOFException/IOException when the driver signals end-of-stream or an I/O error.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapply(long secondsToRun, long recordsCount) Apply the Benchmark.
-
Method Details
-
apply
void apply(long secondsToRun, long recordsCount) throws IOException, EOFException, IllegalStateException Apply the Benchmark.- Parameters:
secondsToRun- number of seconds to RunrecordsCount- Maximum number of records to count. If this value 0 or less than 0,then run the benchmark till secondsToRun.- Throws:
IllegalStateException- If an exception occurred.EOFException- End of File exceptionIOException- If an exception occurred.
-