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 documentation for the `BatchingThreshold` interface in the Google API Client Libraries for Java (GAX), showcasing a comprehensive version history."],["The latest version of the `BatchingThreshold` interface is version 2.63.1, with an extensive list of prior versions available for reference."],["`BatchingThreshold` is an interface that defines thresholds for `ThresholdBatcher`, allowing for the accumulation and management of elements, specifically with the methods `accumulate`, `copyWithZeroedValue`, and `isThresholdReached`."],["The interface's methods, such as `accumulate(E e)`, `copyWithZeroedValue()`, and `isThresholdReached()`, are all designed to be used within `ThresholdBatcher` under a lock to ensure safe thread handling, and they help manage the batching process."],["The main functions of this interface are to accumulate values of type `E`, create copies with zeroed values, and determine if the threshold has been met."]]],[]]