ProxyRetryPolicy constructor

const ProxyRetryPolicy({
  1. int maxRetries = 3,
  2. Duration initialBackoff = const Duration(milliseconds: 500),
  3. Duration maxBackoff = const Duration(seconds: 30),
  4. double backoffMultiplier = 2.0,
  5. bool useJitter = true,
  6. Set<Type> retryableExceptions = const {ProxyConnectionError, ProxyTimeoutError, ProxyRateLimitedError},
})

Creates a new ProxyRetryPolicy

Implementation

const ProxyRetryPolicy({
  this.maxRetries = 3,
  this.initialBackoff = const Duration(milliseconds: 500),
  this.maxBackoff = const Duration(seconds: 30),
  this.backoffMultiplier = 2.0,
  this.useJitter = true,
  this.retryableExceptions = const {
    ProxyConnectionError,
    ProxyTimeoutError,
    ProxyRateLimitedError,
  },
});