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 webpage details the \u003ccode\u003eBatcherFactory\u003c/code\u003e class within the Google API Client Libraries for Java, specifically in the \u003ccode\u003ecom.google.api.gax.rpc\u003c/code\u003e package, with the latest version being 2.63.1.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBatcherFactory\u003c/code\u003e class is designed to create a trio of components, \u003ccode\u003eThresholdBatcher\u003c/code\u003e, \u003ccode\u003eBatchExecutor\u003c/code\u003e, and \u003ccode\u003eThresholdBatchingForwarder\u003c/code\u003e, for each unique partition key to facilitate batch processing.\u003c/p\u003e\n"],["\u003cp\u003eThe class constructor takes parameters such as \u003ccode\u003eBatchingDescriptor\u003c/code\u003e, \u003ccode\u003eBatchingSettings\u003c/code\u003e, \u003ccode\u003eScheduledExecutorService\u003c/code\u003e, and \u003ccode\u003eFlowController\u003c/code\u003e to configure the batching process, and two Type Parameters, \u003ccode\u003eRequestT\u003c/code\u003e and \u003ccode\u003eResponseT\u003c/code\u003e, with the descriptions not listed in the given content.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBatcherFactory\u003c/code\u003e offers methods like \u003ccode\u003egetBatchingSettings()\u003c/code\u003e to retrieve the associated batching settings and \u003ccode\u003egetPushingBatcher(PartitionKey partitionKey)\u003c/code\u003e to obtain or create a \u003ccode\u003eThresholdBatcher\u003c/code\u003e for a specific partition key, ensuring thread-safe operation.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, and this page is a technical reference for advanced usage, with the numerous listed versions all referencing the \u003ccode\u003ecom.google.api.gax.rpc.BatcherFactory\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]