Interface BatchableWorkSource<T>

    • Method Detail

      • getBatch

        List<T> getBatch()
        Returns:
        a batch or subset of the total work contained in the work source
      • hasMoreBatches

        boolean hasMoreBatches()
        Returns:
        true if more work batches exist
      • numberOfBatches

        int numberOfBatches()
        Returns:
        total number of work batches available.
      • reset

        void reset​(int total)
        Reset the work source ready to begin getting batches again.
      • getTotalSize

        int getTotalSize()