Table of Contents

Class RetryConfig

Namespace
Styra.Opa.OpenApi.Utils.Retries
Assembly
Styra.Opa.dll
public class RetryConfig
Inheritance
RetryConfig
Inherited Members

Constructors

RetryConfig(RetryStrategy, BackoffStrategy?, bool)

Selects the retry strategy.

public RetryConfig(RetryConfig.RetryStrategy strategy, BackoffStrategy? backoff = null, bool retryConnectionErrors = false)

Parameters

strategy RetryConfig.RetryStrategy

The retry strategy.

backoff BackoffStrategy

The backoff strategy configuration (if applicable)

retryConnectionErrors bool

Whether to retry on connection errors.

Remarks

The backoff strategy is only required if the retry strategy is set to BACKOFF. To disable retries, set the strategy to NONE.

Fields

Backoff

public readonly BackoffStrategy? Backoff

Field Value

BackoffStrategy

RetryConnectionErrors

public readonly bool RetryConnectionErrors

Field Value

bool

Strategy

public readonly RetryConfig.RetryStrategy Strategy

Field Value

RetryConfig.RetryStrategy