Class BatchingThresholds

java.lang.Object
com.google.api.gax.batching.BatchingThresholds

public final class BatchingThresholds extends Object
Factory methods for general-purpose batching thresholds.
  • Constructor Details

    • BatchingThresholds

      public BatchingThresholds()
  • Method Details

    • create

      public static <E> 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.