BloombergLP::bdlmt::Throttle::requestPermission

requestPermission overloads

Synopses

Declared in <bdlmt_throttle.h>

Return whether taking one action would not exceed this throttle's limit.

bool
requestPermission();
» more...

Return whether taking numActions would not exceed this throttle's limit.

bool
requestPermission(int numActions);
» more...

Return whether taking one action at now would not exceed the limit.

bool
requestPermission(bsls::TimeInterval const& now);
» more...

Return whether taking numActions at now would not exceed the limit.

bool
requestPermission(
    int numActions,
    bsls::TimeInterval const& now);
» more...

Return Value

true if permission is granted, and false otherwise

Parameters

NameDescription
numActionsnumber of actions requested
nowcurrent time on this throttle's configured clock