Set the drain rate and capacity of this leaky bucket.

Synopsis

Declared in <balb_leakybucket.h>

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

Description

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.

Parameters

Name

Description

newRate

new drain rate in units per second

newCapacity

new capacity in units

Created with MrDocs