Class BatchingThresholds (2.8.1)

public final class BatchingThresholds

Factory methods for general-purpose batching thresholds.

Inheritance

java.lang.Object > BatchingThresholds

Constructors

BatchingThresholds()

public BatchingThresholds()

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>>