Class BatchPolicy

java.lang.Object
org.nuxeo.lib.stream.pattern.consumer.BatchPolicy

public class BatchPolicy extends Object
Describe when a batch must be flushed.
Since:
9.1
  • Field Details

    • NO_BATCH

      public static final BatchPolicy NO_BATCH
    • DEFAULT

      public static final BatchPolicy DEFAULT
    • capacity

      protected final int capacity
    • threshold

      protected final Duration threshold
  • Constructor Details

  • Method Details