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

Update the state of this this leaky bucket to the specified `currentTime`, and return `true` if adding 1 more unit to this leaky bucket would cause the total number of units held by this leaky bucket to exceed its capacity, and `false` otherwise&period; Note that this method counts both submitted units and reserved units toward the total number of units held by this leaky bucket&period; The behavior is undefined unless `LLONG&lowbar;MIN !&equals; currentTime&period;seconds()` and the total number of seconds in the time interval resulting from `currentTime &hyphen; lastUpdateTime()` can be represented with a 64&hyphen;bit signed integer&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
wouldOverflow(xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& currentTime);
----


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