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-04-17 UTC."],[[["The latest version available for `BatchingThreshold` is 2.63.1, with multiple prior versions listed, including the currently viewed version 2.52.0."],["`BatchingThreshold` is an interface used within `ThresholdBatcher` to define thresholds for batching operations."],["The interface includes methods to accumulate elements (`accumulate(E e)`), create a copy with a zeroed value (`copyWithZeroedValue()`), and check if a threshold has been reached (`isThresholdReached()`)."],["Calls to the methods within the `BatchingThreshold` interface from `ThresholdBatcher` are managed under a lock to ensure thread safety."],["The Type parameter `E` within the `BatchingThreshold\u003cE\u003e` interface does not contain a description, however, it is used as a parameter in the interface methods."]]],[]]