[#BloombergLP-balb-RateLimiter-setRateLimits] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/RateLimiter.adoc[RateLimiter]::setRateLimits :relfileprefix: ../../../ :mrdocs: Set the sustained rate of this rate limiter to the specified `sustainedRateLimit`, the sustained‐rate time‐window to the specified `sustainedRateWindow`, the peak rate to the specified `peakRateLimit` and the peak‐rate time‐window to the specified `peakRateWindow`. The behavior is undefined unless `0 < sustainedRateLimit`, `0 < sustainedRateWindow`, `0 < peakRateLimit`, `0 < peakRateWindow`, the product of `sustainedRateLimit` and `sustainedRateWindow` can be represented by 64‐bit unsigned integral type, and the product of `peakRateLimit` and `peakRateWindow` can be represented by 64‐bit unsigned integral type. == Synopsis Declared in `<balb_ratelimiter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setRateLimits( xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] sustainedRateLimit, xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& sustainedRateWindow, xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] peakRateLimit, xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& peakRateWindow); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#