Package io.sbk.api
Interface RateController
- All Known Implementing Classes:
SbkRateController
public interface RateController
Interface for Rate or Throughput Controller.
-
Method Summary
-
Method Details
-
start
void start(int recordsPerSec) Start the Rate Controller.- Parameters:
recordsPerSec
- Records Per Second.
-
control
void control(long records, double elapsedSec) Blocks for small amounts of time to achieve target Throughput/events per sec.- Parameters:
records
- current cumulative recordselapsedSec
- Elapsed Seconds
-