Set the lastUpdateTime of this leaky bucket to the specified currentTime. If currentTime is after lastUpdateTime, then update the unitsInBucket of this leaky bucket by subtracting from it the number of units drained from lastUpdateTime to currentTime. If currentTime is before the statisticsCollectionStartTime of this leaky bucket, set statisticsCollectionStartTime to currentTime. The behavior is undefined unless LLONG_MIN != currentTime.seconds() and the total number of seconds in the time interval resulting from currentTime ‐ lastUpdateTime() can be represented with a 64‐bit signed integer.
Synopsis
Declared in <balb_leakybucket.h>
void
updateState(bsls::TimeInterval const& currentTime);
Created with MrDocs