Class BatchProcessor<T>

Object
com.liferay.portal.kernel.util.BatchProcessor<T>

public class BatchProcessor<T> extends Object
Author:
Shuyang Zhou
  • Constructor Details

    • BatchProcessor

      public BatchProcessor(long batchInterval, int batchSize, Consumer<List<T>> consumer, String name)
  • Method Details

    • add

      public void add(T item)
    • close

      public void close()
    • configure

      public void configure(long batchInterval, int batchSize)