[#BloombergLP-balb-LeakyBucket-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/LeakyBucket.adoc[LeakyBucket]::LeakyBucket
:relfileprefix: ../../../
:mrdocs:

Create an empty leaky bucket having the specified `drainRate`, the specified `capacity`, and the specified `currentTime` as the initial `lastUpdateTime`&period; The behavior is undefined unless `0 &lt; newRate`, `0 &lt; newCapacity`, and `LLONG&lowbar;MIN !&equals; currentTime&period;seconds()`&period;

== Synopsis

Declared in `&lt;balb&lowbar;leakybucket&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
LeakyBucket(
    xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] drainRate,
    xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] capacity,
    xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& currentTime);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
