A Factory class which, for each unique partitionKey, creates a trio including a ThresholdBatcher,
BatchExecutor, and ThresholdBatchingForwarder. The ThresholdBatchingForwarder pulls items from
the ThresholdBatcher and forwards them to the BatchExecutor for processing.
This is public only for technical reasons, for advanced usage.
[[["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-09-04 UTC."],[[["\u003cp\u003eThis page documents the \u003ccode\u003eBatcherFactory\u003c/code\u003e class, which is part of the Google API Client Library for Java (gax) and is currently at version 2.38.0, with the latest version being 2.63.1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBatcherFactory\u003c/code\u003e is a factory class that creates a set of three components: \u003ccode\u003eThresholdBatcher\u003c/code\u003e, \u003ccode\u003eBatchExecutor\u003c/code\u003e, and \u003ccode\u003eThresholdBatchingForwarder\u003c/code\u003e, for each unique \u003ccode\u003epartitionKey\u003c/code\u003e, which work together to process batches of requests.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBatcherFactory\u003c/code\u003e class includes methods like \u003ccode\u003egetBatchingSettings()\u003c/code\u003e to get the associated \u003ccode\u003eBatchingSettings\u003c/code\u003e and \u003ccode\u003egetPushingBatcher()\u003c/code\u003e to retrieve or create a \u003ccode\u003eThresholdBatcher\u003c/code\u003e for a given \u003ccode\u003epartitionKey\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe provided content includes a list of links to different versions of the \u003ccode\u003eBatcherFactory\u003c/code\u003e documentation, ranging from the latest version 2.63.1 down to version 2.7.1.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBatcherFactory\u003c/code\u003e is designed for advanced usage and is primarily public for technical reasons, and the class has a constructor that takes \u003ccode\u003eBatchingDescriptor\u003c/code\u003e, \u003ccode\u003eBatchingSettings\u003c/code\u003e, \u003ccode\u003eScheduledExecutorService\u003c/code\u003e, and \u003ccode\u003eFlowController\u003c/code\u003e as parameters.\u003c/p\u003e\n"]]],[],null,[]]