Class BatchingThresholds (2.20.1)

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
NameDescription
elementThresholdlong
Returns
TypeDescription
List<BatchingThreshold<E>>

Constructors

BatchingThresholds()

public BatchingThresholds()