ExponentialRetryPolicy constructor

ExponentialRetryPolicy(
  1. {required int maxRetries,
  2. required Duration initialDelayInSeconds,
  3. required double multiplier,
  4. required Duration maximumDelayInSeconds}
)

Default constructor for ExponentialRetryPolicy.

Params:

  • maxRetries: the maximum number of retries.
  • initialDelayInSeconds: the delay to be waited before executing the first retry.
  • multiplier: the multiplier of the delay interval.
  • maximumDelayInSeconds: the maximum time interval of the delay in seconds.

Implementation

factory ExponentialRetryPolicy