Class BatchingThresholds (2.50.0)

public final class BatchingThresholds

Factory methods for general-purpose batching thresholds.

Inheritance

java.lang.Object > BatchingThresholds

Static Methods

<E>create(long elementThreshold)

public static List<BatchingThreshold<E>> <E>create(long elementThreshold)

Creates an ImmutableList containing only a single threshold which counts the number of elements. This is helpful for when using ThresholdBatcher for the simple case, when the element count is the only threshold.

Parameter
Name Description
elementThreshold long
Returns
Type Description
List<BatchingThreshold<E>>

Constructors

BatchingThresholds()

public BatchingThresholds()