Class RetryConfig
- Namespace
- OpenPolicyAgent.Opa.OpenApi.Utils.Retries
- Assembly
- OpenPolicyAgent.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
strategyRetryConfig.RetryStrategyThe retry strategy.
backoffBackoffStrategyThe backoff strategy configuration (if applicable)
retryConnectionErrorsboolWhether 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
RetryConnectionErrors
public readonly bool RetryConnectionErrors
Field Value
Strategy
public readonly RetryConfig.RetryStrategy Strategy