Type Parameters:
T - the type of content item that should be operated upon
All Known Implementing Classes:
ChangeSpaceDescriptionsBodyTypeTask, ContentEntityMigrationBatchTask, ConvertToRelativeLinksTask, IndexingBatchTask

public interface BatchTask<T>
A BatchTask implementation is supplied to a WorkSourceBatchRunner to actually perform the required work on individual items read from the BatchableWorkSource.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    apply(T item, int index, int batchSize)
     
  • Method Details

    • apply

      boolean apply(T item, int index, int batchSize) throws Exception
      Parameters:
      item - the item to be operate on
      index - the index of this item in its batch
      batchSize - the size of the batch
      Returns:
      true if the item required work to be done, false otherwise
      Throws:
      Exception