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

Default backoff strategy for retries: linear, 100ms per attempt. More...

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

Public Member Functions

void Backoff (int attempt)
 Waits for an amount of time relevant to the attempt.
Parameters
attempt

Static Public Attributes

const int BACKOFF_MILLISECONDS = 100
 The number of milliseconds this will back off with after each failure.

Detailed Description

Default backoff strategy for retries: linear, 100ms per attempt.

Member Function Documentation

◆ Backoff()

void PeanutButter.Utils.DefaultBackoffStrategy.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