Send feedback
Class ThresholdBatcher.Builder<E> (2.48.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.48.1 keyboard_arrow_down
public static class ThresholdBatcher . Builder<E>
Builder for a ThresholdBatcher.
Type Parameter
Name
Description
E
Methods
build()
public ThresholdBatcher<E> build ()
Build the ThresholdBatcher.
setBatchMerger(BatchMerger<E> batchMerger)
public ThresholdBatcher . Builder<E> setBatchMerger ( BatchMerger<E> batchMerger )
Set the batch merger for the ThresholdBatcher.
Returns
Type
Description
Builder <E >
setExecutor(ScheduledExecutorService executor)
public ThresholdBatcher . Builder<E> setExecutor ( ScheduledExecutorService executor )
Set the executor for the ThresholdBatcher.
Returns
Type
Description
Builder <E >
setFlowController(BatchingFlowController<E> flowController)
public ThresholdBatcher . Builder<E> setFlowController ( BatchingFlowController<E> flowController )
Set the flow controller for the ThresholdBatcher.
Returns
Type
Description
Builder <E >
setMaxDelay(Duration maxDelay)
public ThresholdBatcher . Builder<E> setMaxDelay ( Duration maxDelay )
Set the max delay for a batch. This is counted from the first item added to a batch.
Parameter
Name
Description
maxDelay
org.threeten.bp.Duration
Returns
Type
Description
Builder <E >
setReceiver(ThresholdBatchReceiver<E> receiver)
public ThresholdBatcher . Builder<E> setReceiver ( ThresholdBatchReceiver<E> receiver )
Set the threshold batch receiver for the ThresholdBatcher.
Returns
Type
Description
Builder <E >
setThresholds(Collection<BatchingThreshold<E>> thresholds)
public ThresholdBatcher . Builder<E> setThresholds ( Collection<BatchingThreshold<E> > thresholds )
Set the thresholds for the ThresholdBatcher.
Returns
Type
Description
Builder <E >
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
Need to tell us more?
[[["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 2024-11-19 UTC."],[],[]]