Return whether submitting 1 unit at currentTime would exceed limits.

Synopsis

Declared in <balb_ratelimiter.h>

bool
wouldExceedBandwidth(bsls::TimeInterval const& currentTime);

Description

Update the state of this rate limiter to the specified currentTime. Return true if submitting 1 unit at the currentTime would exceed the configured limits, and false otherwise.

Return Value

true if submitting 1 unit would exceed limits, else false

Parameters

Name

Description

currentTime

time used to update this limiter before checking

Created with MrDocs