[#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. Note that this method counts both submitted units and reserved units toward the total number of units held by this leaky bucket. The behavior is undefined unless `LLONG_MIN != currentTime.seconds()` and the total number of seconds in the time interval resulting from `currentTime ‐ lastUpdateTime()` can be represented with a 64‐bit signed integer. == Synopsis Declared in `<balb_leakybucket.h>` [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]#