public static class ThresholdBatcher.Builder<E> extends Object
| Modifier and Type | Method and Description |
|---|---|
ThresholdBatcher<E> |
build()
Build the ThresholdBatcher.
|
ThresholdBatcher.Builder<E> |
setBatchMerger(BatchMerger<E> batchMerger)
Set the batch merger for the ThresholdBatcher.
|
ThresholdBatcher.Builder<E> |
setExecutor(ScheduledExecutorService executor)
Set the executor for the ThresholdBatcher.
|
ThresholdBatcher.Builder<E> |
setFlowController(BatchingFlowController<E> flowController)
Set the flow controller for the ThresholdBatcher.
|
ThresholdBatcher.Builder<E> |
setMaxDelay(org.threeten.bp.Duration maxDelay)
Set the max delay for a batch.
|
ThresholdBatcher.Builder<E> |
setReceiver(ThresholdBatchReceiver<E> receiver)
Set the threshold batch receiver for the ThresholdBatcher.
|
ThresholdBatcher.Builder<E> |
setThresholds(Collection<BatchingThreshold<E>> thresholds)
Set the thresholds for the ThresholdBatcher.
|
public ThresholdBatcher.Builder<E> setExecutor(ScheduledExecutorService executor)
public ThresholdBatcher.Builder<E> setMaxDelay(org.threeten.bp.Duration maxDelay)
public ThresholdBatcher.Builder<E> setThresholds(Collection<BatchingThreshold<E>> thresholds)
public ThresholdBatcher.Builder<E> setReceiver(ThresholdBatchReceiver<E> receiver)
public ThresholdBatcher.Builder<E> setFlowController(BatchingFlowController<E> flowController)
public ThresholdBatcher.Builder<E> setBatchMerger(BatchMerger<E> batchMerger)
public ThresholdBatcher<E> build()