BatchProcessorConfig constructor

const BatchProcessorConfig({
  1. int batchSize = 10,
  2. int maxConcurrency = 5,
  3. Duration timeout = const Duration(seconds: 30),
  4. int retryAttempts = 3,
  5. Duration retryDelay = const Duration(seconds: 1),
})

Creates a new batch processor configuration.

batchSize - Number of items to process in each batch maxConcurrency - Maximum number of concurrent batch operations timeout - Timeout for individual batch operations retryAttempts - Number of retry attempts for failed batches retryDelay - Delay between retry attempts

Implementation

const BatchProcessorConfig({
  this.batchSize = 10,
  this.maxConcurrency = 5,
  this.timeout = const Duration(seconds: 30),
  this.retryAttempts = 3,
  this.retryDelay = const Duration(seconds: 1),
});