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-02 UTC."],[[["This webpage provides documentation for the `BatchingThreshold` interface in the Google API Client Library for Java (GAX), specifically for version 2.32.1 and earlier versions."],["The `BatchingThreshold` interface is designed for use within `ThresholdBatcher` and helps determine when a batch of elements should be processed based on certain accumulated attributes."],["Key methods within the `BatchingThreshold` interface include `accumulate(E e)`, for adding elements and tracking their attributes, `copyWithZeroedValue()`, for creating a new instance with reset accumulated values, and `isThresholdReached()`, to check whether the threshold condition has been met."],["The page lists various versions of `BatchingThreshold`, ranging from the latest 2.63.1 to 2.7.1, allowing users to access documentation specific to their required version."],["The `BatchingThreshold` does not need to be thread-safe, as calls from `ThresholdBatcher` are made under a lock."]]],[]]