Send feedback
Class ThresholdBatcher.Builder<E> (2.18.7)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.18.7 keyboard_arrow_down
public static class ThresholdBatcher . Builder<E>
Builder for a ThresholdBatcher.
Type Parameter
Methods
build()
public ThresholdBatcher<E> build ()
Build the ThresholdBatcher.
Returns
setBatchMerger(BatchMerger<E> batchMerger)
public ThresholdBatcher . Builder<E> setBatchMerger ( BatchMerger<E> batchMerger )
Set the batch merger for the ThresholdBatcher.
Parameter
Returns
setExecutor(ScheduledExecutorService executor)
public ThresholdBatcher . Builder<E> setExecutor ( ScheduledExecutorService executor )
Set the executor for the ThresholdBatcher.
Parameter
Returns
setFlowController(BatchingFlowController<E> flowController)
public ThresholdBatcher . Builder<E> setFlowController ( BatchingFlowController<E> flowController )
Set the flow controller for the ThresholdBatcher.
Parameter
Returns
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
setReceiver(ThresholdBatchReceiver<E> receiver)
public ThresholdBatcher . Builder<E> setReceiver ( ThresholdBatchReceiver<E> receiver )
Set the threshold batch receiver for the ThresholdBatcher.
Parameter
Returns
setThresholds(Collection<BatchingThreshold<E>> thresholds)
public ThresholdBatcher . Builder<E> setThresholds ( Collection<BatchingThreshold<E> > thresholds )
Set the thresholds for the ThresholdBatcher.
Parameter
Returns
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-10-30 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-10-30 UTC."],[],[]]