BloombergLP::balb::LeakyBucket::getStatistics

Load submitted and unused unit statistics for this leaky bucket.

Synopsis

Declared in <balb_leakybucket.h>

void
getStatistics(
    bsls::Types::Uint64* submittedUnits,
    bsls::Types::Uint64* unusedUnits) const;

Description

Load, into the specified submittedUnits and the specified unusedUnits respectively, the numbers of submitted units and the number of unused units for this leaky bucket from the statisticsCollectionStartTime to the lastUpdateTime. The number of unused units is the difference between the number of units that could have been consumed and the number of units actually submitted for the time period.

Parameters

NameDescription
submittedUnitsdestination for the submitted-unit count
unusedUnitsdestination for the unused-unit count