Set the lastUpdateTime of this rate limiter to the specified currentTime.
Synopsis
Declared in <balb_ratelimiter.h>
void
updateState(bsls::TimeInterval const& currentTime);
Description
If the currentTime is after lastUpdateTime, then recalculate number of units available for consumption based on the peakRate, sustainedRate and the time interval between lastUpdateTime and currentTime. If currentTime is before statisticsCollectionStartTime, set it' to currentTime.
Parameters
Name |
Description |
currentTime |
time to which this rate limiter's state is updated |
Created with MrDocs