Package org.flowable.common.engine.api.query

# Interface BatchDeleteQuery<Q extends BatchDeleteQuery<Q>>

All Known Subinterfaces:
  `HistoricCaseInstanceQuery`, `HistoricProcessInstanceQuery`

public interface BatchDeleteQuery<Q extends BatchDeleteQuery<Q>>

Author:
  Filip Hrisafov

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `deleteInParallelUsingBatch(int batchSize, String batchName)`
  Perform the deletion in parallel using the given batch size.
  `String`
  `deleteSequentiallyUsingBatch(int batchSize, String batchName)`
  Perform the deletion sequentially using the given batch size.

- ## Method Details

  - ### deleteInParallelUsingBatch

    String deleteInParallelUsingBatch(int batchSize, String batchName)
    Perform the deletion in parallel using the given batch size. Doing the deletion in parallel means that multiple batches can be deleted in the same time
    Parameters:
      `batchSize` - the size of each batch deletion
      `batchName` - the name of the batch
    Returns:
      the id the batch that is doing the deletion

  - ### deleteSequentiallyUsingBatch

    String deleteSequentiallyUsingBatch(int batchSize, String batchName)
    Perform the deletion sequentially using the given batch size. Doing the deletion sequentially means that the deletion will be done one batch at a time.
    Parameters:
      `batchSize` - the size of each batch deletion
      `batchName` - the name of the batch
    Returns:
      the id the batch that is doing the deletion