Class RetryUtilConfig
Configuration for utility methods in the RetryUtil class. This can be used in config files for user-configured retries.
Inherited Members
Namespace: Cognite.Extractor.Common
Assembly: Cognite.Common.dll
Syntax
public class RetryUtilConfig
Properties
| Edit this page View SourceInitialDelay
Initial delay used for exponential backoff. Time between each retry is calculated as
min(max-delay, initial-delay * 2 ^ retry)
, where 0 is treated as infinite for max-delay
.
The maximum delay is about 10 minutes (13 retries).
Declaration
public string InitialDelay { get; set; }
Property Value
Type | Description |
---|---|
string |
InitialDelayValue
Value of the initial delay parameter.
Declaration
public TimeSpanWrapper InitialDelayValue { get; }
Property Value
Type | Description |
---|---|
TimeSpanWrapper |
MaxDelay
Maximum delay between attempts using exponential backoff.
Declaration
public string MaxDelay { get; set; }
Property Value
Type | Description |
---|---|
string |
MaxDelayValue
Value of the MaxDelay parameter
Declaration
public TimeSpanWrapper MaxDelayValue { get; }
Property Value
Type | Description |
---|---|
TimeSpanWrapper |
MaxTries
Maximum number of attempts. 0 or less retries forever, 1 does not retry.
Declaration
public int MaxTries { get; set; }
Property Value
Type | Description |
---|---|
int |
Timeout
Global timeout. After this much time has passed, new retries will not be started.
Declaration
public string Timeout { get; set; }
Property Value
Type | Description |
---|---|
string |
TimeoutValue
Value of the timeout parameter.
Declaration
public TimeSpanWrapper TimeoutValue { get; }
Property Value
Type | Description |
---|---|
TimeSpanWrapper |