Class BatchingThresholds


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

      • BatchingThresholds

        public BatchingThresholds()
    • Method Detail

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