Class BatchingThresholds


  • public final class BatchingThresholds
    extends java.lang.Object
    Factory methods for general-purpose batching thresholds.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BatchingThresholds

        public BatchingThresholds()
    • 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.