Method SetLimit
SetLimit(Double)
Configures rate limiter by setting its limit in units per second.
Declaration
void SetLimit(double limitPerSecond)
Parameters
Type | Name | Description |
---|---|---|
Double | limitPerSecond | Limit in units per second |
Remarks
Note that this method is called both when rate limiter is
configured for the first time and also if/when table limits
change, so it may need to account for the current state due to
outstanding operations already rate-limited by this instance,
however there is no need to change state or block (sleep) time of
these outstanding operations and the new limit only needs to apply
to the new operations issued.