public static final class ThresholdBundler.Builder<E>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
ThresholdBundler.Builder<E> |
addExternalThreshold(ExternalThreshold<E> externalThreshold)
Add an external threshold to the ThresholdBundler.
|
ThresholdBundler.Builder<E> |
addThreshold(BundlingThreshold<E> threshold)
Add a threshold to the ThresholdBundler.
|
ThresholdBundler<E> |
build()
Build the ThresholdBundler.
|
ThresholdBundler.Builder<E> |
setExternalThresholds(java.util.List<ExternalThreshold<E>> externalThresholds)
Set the external thresholds for the ThresholdBundler.
|
ThresholdBundler.Builder<E> |
setMaxDelay(org.joda.time.Duration maxDelay)
Set the max delay for a bundle.
|
ThresholdBundler.Builder<E> |
setThresholds(java.util.List<BundlingThreshold<E>> thresholds)
Set the thresholds for the ThresholdBundler.
|
public ThresholdBundler.Builder<E> setMaxDelay(org.joda.time.Duration maxDelay)
public ThresholdBundler.Builder<E> setThresholds(java.util.List<BundlingThreshold<E>> thresholds)
public ThresholdBundler.Builder<E> addThreshold(BundlingThreshold<E> threshold)
public ThresholdBundler.Builder<E> setExternalThresholds(java.util.List<ExternalThreshold<E>> externalThresholds)
public ThresholdBundler.Builder<E> addExternalThreshold(ExternalThreshold<E> externalThreshold)
public ThresholdBundler<E> build()