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 lists different versions of the `BatchingThreshold` interface, ranging from the latest version 2.63.1 down to version 2.7.1."],["The `BatchingThreshold` interface is used within `ThresholdBatcher` to represent a threshold for batching operations."],["The `accumulate(E e)` method is for presenting elements to be accumulated toward the threshold, and it is thread-safe under a lock within `ThresholdBatcher`."],["The `copyWithZeroedValue()` method allows for making a copy of the threshold with its accumulated value reset to zero, also under lock."],["The `isThresholdReached()` method determines if the threshold has been reached, with the assurance of being thread-safe due to being used under lock within `ThresholdBatcher`."]]],[]]