Package io.sbk.api
Interface Callback<T>
- Type Parameters:
T
- Flexible parameter
- All Known Implementing Classes:
SbkCallbackReader
public interface Callback<T>
Interface Callback.
-
Method Summary
-
Method Details
-
consume
Consume the data.- Parameters:
data
- data read from storage client/device.
-
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.
-