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-09 UTC."],[[["This webpage provides documentation for the `BatchingThreshold` interface in the Google API Client Library for Java (com.google.api.gax.batching), with the latest version being 2.63.1."],["The `BatchingThreshold` interface is used in `ThresholdBatcher` to represent a configurable limit or condition for batching operations."],["The page includes a comprehensive list of links to documentation for various historical versions of `BatchingThreshold`, ranging from version 2.63.1 down to 2.7.1."],["The `BatchingThreshold` interface defines methods such as `accumulate(E e)` to accumulate attribute values, `copyWithZeroedValue()` to create a copy with a reset value, and `isThresholdReached()` to check whether the threshold has been met."],["The `BatchingThreshold` does not need to be thread safe, if used in the `ThresholdBatcher` as calls will be under lock."]]],[]]