Create an empty leaky bucket with the specified rate and capacity.
Declared in <balb_leakybucket.h>
LeakyBucket(
bsls::Types::Uint64 drainRate,
bsls::Types::Uint64 capacity,
bsls::TimeInterval const& currentTime);
Create an empty leaky bucket having the specified drainRate, the specified capacity, and the specified currentTime as the initial lastUpdateTime. The behavior is undefined unless 0 < newRate, 0 < newCapacity, and LLONG_MIN != currentTime.seconds().
| Name | Description |
|---|---|
| drainRate | rate at which units drain from the bucket |
| capacity | maximum number of units the bucket can hold |
| currentTime | initial lastUpdateTime for the bucket |