PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.ConstantTimeBackoffStrategy Class Reference

Provides a constant-time backoff (like the default) but where the caller can set the interval. More...

Inheritance diagram for PeanutButter.Utils.ConstantTimeBackoffStrategy:
PeanutButter.Utils.IBackoffStrategy

Public Member Functions

 ConstantTimeBackoffStrategy (TimeSpan interval)
 The interval between retries.
void Backoff (int attempt)
 Waits for an amount of time relevant to the attempt.
Parameters
attempt

Detailed Description

Provides a constant-time backoff (like the default) but where the caller can set the interval.

Constructor & Destructor Documentation

◆ ConstantTimeBackoffStrategy()

PeanutButter.Utils.ConstantTimeBackoffStrategy.ConstantTimeBackoffStrategy ( TimeSpan interval)

The interval between retries.

Parameters
interval

Member Function Documentation

◆ Backoff()

void PeanutButter.Utils.ConstantTimeBackoffStrategy.Backoff ( int attempt)

Waits for an amount of time relevant to the attempt.

Parameters
attempt

Implements PeanutButter.Utils.IBackoffStrategy.


The documentation for this class was generated from the following file:
  • source/Utils/PeanutButter.Utils/DefaultBackoffStrategy.cs