Package io.sbk.api.impl
Class SbkRateController
java.lang.Object
io.sbk.api.impl.SbkRateController
- All Implemented Interfaces:
RateController
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SbkRateController
public SbkRateController()
-
-
Method Details
-
start
public void start(int recordsPerSec) Start the Rate Controller.- Specified by:
start
in interfaceRateController
- Parameters:
recordsPerSec
- Records Per Second.
-
control
public void control(long events, double elapsedSec) Blocks for small amounts of time to achieve target Throughput/events per sec.- Specified by:
control
in interfaceRateController
- Parameters:
events
- current cumulative eventselapsedSec
- Elapsed seconds
-