Class Status
java.lang.Object
io.sbk.api.Status
Holder for per-operation read/write status used by the SBK harness.
This mutable value object is reused by the benchmark helpers to return
timing and size information for a single read or write operation. Fields
are public for lightweight access from hot paths in the harness. Typical
lifecycle for a Status instance in the harness:
- Set
startTimebefore beginning an operation. - Set
endTimewhen the operation completes (or equalsstartTimefor synchronous operations). - Set
recordsandbytesto indicate how many records and bytes were processed.
Note: this class intentionally exposes mutable public fields to avoid
allocation and accessor overhead in the hot benchmarking loop. Do not
share a single Status instance across concurrent operations.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
startTime
public long startTime -
endTime
public long endTime -
records
public int records -
bytes
public int bytes
-
-
Constructor Details
-
Status
public Status()
-