|
PeanutButter
|
Provides a constant-time backoff (like the default) but where the caller can set the interval. More...
Public Member Functions | |||
| ConstantTimeBackoffStrategy (TimeSpan interval) | |||
| The interval between retries. | |||
| void | Backoff (int attempt) | ||
Waits for an amount of time relevant to the attempt.
| |||
Provides a constant-time backoff (like the default) but where the caller can set the interval.
| PeanutButter.Utils.ConstantTimeBackoffStrategy.ConstantTimeBackoffStrategy | ( | TimeSpan | interval | ) |
The interval between retries.
| interval |
| void PeanutButter.Utils.ConstantTimeBackoffStrategy.Backoff | ( | int | attempt | ) |
Waits for an amount of time relevant to the attempt.
| attempt |
Implements PeanutButter.Utils.IBackoffStrategy.