Package lumis.util

Class CollectionExecutor<T>

  • Type Parameters:
    T - the type of the collection elements.

    public class CollectionExecutor<T>
    extends java.lang.Object
    Utility used to process collections in blocks.

    Currently each block is fixed in a maximum size, the default value is 1000 elements.

    Since:
    4.2.2.090330
    Version:
    $Revision$ $Date$
    • Constructor Detail

      • CollectionExecutor

        public CollectionExecutor​(java.util.Collection<? extends T> items)
        Creates a new executor.
        Parameters:
        items - the collection to be processed in blocks.
        Since:
        4.2.2.090330
      • CollectionExecutor

        public CollectionExecutor​(java.util.Collection<? extends T> items,
                                  int iterationBlock)
        Creates a new executor.
        Parameters:
        items - the collection to be processed in blocks.
        iterationBlock - the maximum number of element in each iteration that calls CollectionExecutor.IIterationCommand.execute(List).
        Since:
        12.3.0