Package com.google.api.gax.batching
Class BatchingThresholds
- java.lang.Object
-
- com.google.api.gax.batching.BatchingThresholds
-
public final class BatchingThresholds extends java.lang.ObjectFactory methods for general-purpose batching thresholds.
-
-
Constructor Summary
Constructors Constructor Description BatchingThresholds()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> java.util.List<BatchingThreshold<E>>create(long elementThreshold)Creates an ImmutableList containing only a single threshold which counts the number of elements.
-
-
-
Method Detail
-
create
public static <E> java.util.List<BatchingThreshold<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.
-
-