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 page provides documentation for the `BatchingThreshold` interface in the Google API Client Library for Java, with version 2.63.1 being the latest release, and the documentation for version 2.60.0 being shown by default."],["The `BatchingThreshold` interface is used within `ThresholdBatcher` to determine when a batching threshold has been reached."],["The interface includes methods such as `accumulate(E e)`, which adds an element to the threshold, `copyWithZeroedValue()`, which creates a new threshold with a zeroed value, and `isThresholdReached()`, which checks if the threshold has been reached."],["There are numerous previous versions available, all the way back to version 2.7.1 for the user to view the documentation of their specific version."],["The type parameter `E` is not described in the documentation, however the documentation shows `E` will be passed as a parameter to the `accumulate()` method."]]],[]]