BloombergLP::bdlmt::Throttle::initialize

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);
» more...

Initialize this throttle using the monotonic clock and specified limits.

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

Initialize this throttle using the realtime clock and specified limits.

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

Parameters

NameDescription
maxSimultaneousActionsmaximum actions allowed at one time
nanosecondsPerActionminimum average period between actions
clockTypesystem clock used to measure time
clockunused; selects the monotonic system clock