The interface representing a threshold to be used in ThresholdBatcher. Thresholds do not need to
be thread-safe if they are only used inside ThresholdBatcher.
Type Parameter
Name
Description
E
Methods
accumulate(E e)
publicabstractvoidaccumulate(Ee)
Presents the element to the threshold for the attribute of interest to be accumulated.
Any calls into this function from ThresholdBatcher will be under a lock.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage provides a comprehensive list of versions for `BatchingThreshold`, ranging from version 2.63.1 (latest) down to 2.7.1."],["`BatchingThreshold` is an interface used within `ThresholdBatcher` to manage batching, not requiring thread-safety if used within the batcher."],["The `accumulate(E e)` method adds an element to the threshold for accumulation, ensuring all calls from `ThresholdBatcher` are under a lock."],["`copyWithZeroedValue()` creates a copy of the current threshold with its accumulated value reset to zero, and is also protected by a lock when called from `ThresholdBatcher`."],["The method `isThresholdReached()` determines if the threshold has been met or exceeded and is also protected by a lock when called from `ThresholdBatcher`."]]],[]]