Set the drain rate and capacity of this leaky bucket.
Declared in <balb_leakybucket.h>
void
setRateAndCapacity(
bsls::Types::Uint64 newRate,
bsls::Types::Uint64 newCapacity);
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.
| Name | Description |
|---|---|
| newRate | new drain rate in units per second |
| newCapacity | new capacity in units |