Queues up elements until either a duration of time has passed or any threshold in a given set of
thresholds is breached, and then delivers the elements in a batch to the consumer.
Adds an element to the batcher. If the element causes the collection to go past any of the
thresholds, the batch will be sent to the ThresholdBatchReceiver.
Push the current batch to the batch receiver. Returns an ApiFuture that completes once the
batch has been processed by the batch receiver and the flow controller resources have been
released.
Note that this future can complete for the current batch before previous batches have
completed, so it cannot be depended upon for flushing.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-01 UTC."],[[["The provided content is a documentation page for the `ThresholdBatcher` class in the Google API Client Library for Java, specifically version 2.19.2, which is not the latest version."],["This page lists various historical versions of the `ThresholdBatcher` class, including the latest version 2.63.1, with links to their respective documentation."],["The `ThresholdBatcher` class queues elements until a time duration expires or any defined threshold is exceeded, at which point the elements are delivered as a batch."],["The class includes methods for adding elements (`add(E e)`), manually pushing the current batch (`pushCurrentBatch()`), and a static method for building new instances (`newBuilder()`)."],["The content details the class hierarchy, inherited members, and includes a Type Parameter section, as well as comprehensive explanations of both the Static Methods and Methods available."]]],[]]