Interface Callback<T>
- Type Parameters:
T- Flexible parameter
- All Known Implementing Classes:
SbkCallbackReader
public interface Callback<T>
Callback interface used by callback-driven drivers to receive data and
optionally report per-record benchmarking metrics.
Drivers that provide a callback-style API may implement this interface
to bridge into SBK's metric reporting. The record method is a
convenience to report pre-computed timing and size information; it has a
default no-op implementation so callback-only drivers can ignore it.
-
Method Summary
-
Method Details
-
consume
-
record
default void record(long startTime, long endTime, int dataSize, int records) Accept the benchmarking data. if your storage driver is not interested in passing the data read; then below method can be overridden.- Parameters:
startTime- Start timeendTime- End Time.dataSize- size of the data in bytes.records- number of records/events/messages.
-