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-08-15 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eBatchingThreshold\u003c/code\u003e interface in the Google API Client Libraries for Java (GAX), showcasing a comprehensive version history.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eBatchingThreshold\u003c/code\u003e interface is version 2.63.1, with an extensive list of historical versions available for reference.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBatchingThreshold\u003c/code\u003e is an interface utilized within \u003ccode\u003eThresholdBatcher\u003c/code\u003e for managing batching thresholds, with no requirement for thread safety when solely used within \u003ccode\u003eThresholdBatcher\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe interface provides three primary methods: \u003ccode\u003eaccumulate(E e)\u003c/code\u003e for adding elements to the threshold, \u003ccode\u003ecopyWithZeroedValue()\u003c/code\u003e for creating a copy with reset values, and \u003ccode\u003eisThresholdReached()\u003c/code\u003e to check if the threshold has been met.\u003c/p\u003e\n"],["\u003cp\u003eAll calls into the \u003ccode\u003eaccumulate\u003c/code\u003e, \u003ccode\u003ecopyWithZeroedValue\u003c/code\u003e, and \u003ccode\u003eisThresholdReached\u003c/code\u003e functions from the \u003ccode\u003eThresholdBatcher\u003c/code\u003e are done under lock.\u003c/p\u003e\n"]]],[],null,[]]