initialize overloads

Synopses

Declared in <bdlmt_throttle.h>

Initialize this throttle with the specified rate and burst limits.

void
initialize(
    int maxSimultaneousActions,
    Int64 nanosecondsPerAction,
    bsls::SystemClockType::Enum clockType = bsls::SystemClockType::e_MONOTONIC);

Initialize this throttle using the monotonic clock and specified limits.

void
initialize(
    int maxSimultaneousActions,
    Int64 nanosecondsPerAction,
    std::chrono::steady_clock const& clock);

Initialize this throttle using the realtime clock and specified limits.

void
initialize(
    int maxSimultaneousActions,
    Int64 nanosecondsPerAction,
    std::chrono::system_clock const& clock);

Parameters

Name

Description

maxSimultaneousActions

maximum actions allowed at one time

nanosecondsPerAction

minimum average period between actions

clockType

system clock used to measure time

clock

unused; selects the monotonic system clock

Created with MrDocs