validate method

void validate()

Implementation

void validate() {
  if (maxBatchSize <= 0) {
    throw ArgumentError('maxBatchSize must be positive');
  }

  if (maxBatchInterval.inMilliseconds <= 0) {
    throw ArgumentError('maxBatchInterval must be positive');
  }

  if (maxRetries < 0) {
    throw ArgumentError('maxRetries cannot be negative');
  }

  if (maxQueueSize <= 0) {
    throw ArgumentError('maxQueueSize must be positive');
  }
}