BloombergLP::balb::LeakyBucket::setRateAndCapacity

Set the drain rate of this leaky bucket to the specified newRate and the capacity of this leaky bucket to the specified newCapacity. The behavior is undefined unless 0 < newRate and 0 < newCapacity.

Synopsis

Declared in <balb_leakybucket.h>

void
setRateAndCapacity(
    bsls::Types::Uint64 newRate,
    bsls::Types::Uint64 newCapacity);