BatchProcessorConfig constructor
const
BatchProcessorConfig({})
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),
});