[#BloombergLP-balb-LeakyBucket-reserve] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/LeakyBucket.adoc[LeakyBucket]::reserve :relfileprefix: ../../../ :mrdocs: Reserve the specified `numUnits` for future use by this leaky bucket. The behavior is undefined unless 'unitsReserved() + unitsInBucket() + numUnits' can be represented by a 64‐bit unsigned integral type. Note that after this operation, this bucket may overflow. Also note that the time interval between the invocations of `reserve` and `submitReserved` or `cancelReserved` should be kept as short as possible; otherwise, the precision of the time interval calculated by `calculateTimeToSubmit` may be negatively affected. == Synopsis Declared in `<balb_leakybucket.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void reserve(xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] numUnits); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#