Package com.google.api.gax.batching
Class BatchingThresholds
java.lang.Object
com.google.api.gax.batching.BatchingThresholds
Factory methods for general-purpose batching thresholds.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> List<BatchingThreshold<E>>create(long elementThreshold) Creates an ImmutableList containing only a single threshold which counts the number of elements.
-
Constructor Details
-
BatchingThresholds
public BatchingThresholds()
-
-
Method Details
-
create
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.
-