Show / Hide Table of Contents

Class RetryUtilConfig

Configuration for utility methods in the RetryUtil class. This can be used in config files for user-configured retries.

Inheritance
object
RetryUtilConfig
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cognite.Extractor.Common
Assembly: Cognite.Common.dll
Syntax
public class RetryUtilConfig

Properties

| Edit this page View Source

InitialDelay

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
| Edit this page View Source

InitialDelayValue

Value of the initial delay parameter.

Declaration
public TimeSpanWrapper InitialDelayValue { get; }
Property Value
Type Description
TimeSpanWrapper
| Edit this page View Source

MaxDelay

Maximum delay between attempts using exponential backoff.

Declaration
public string MaxDelay { get; set; }
Property Value
Type Description
string
| Edit this page View Source

MaxDelayValue

Value of the MaxDelay parameter

Declaration
public TimeSpanWrapper MaxDelayValue { get; }
Property Value
Type Description
TimeSpanWrapper
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

TimeoutValue

Value of the timeout parameter.

Declaration
public TimeSpanWrapper TimeoutValue { get; }
Property Value
Type Description
TimeSpanWrapper

Extension Methods

DataModelUtils.GetOrCreateResourcesAsync<T, T2>(T2, IEnumerable<InstanceIdentifier>, Func<IEnumerable<InstanceIdentifier>, IEnumerable<SourcedNodeWrite<T>>>, Func<IEnumerable<SourcedNodeWrite<T>>, SanitationMode, (IEnumerable<SourcedNodeWrite<T>>, IEnumerable<CogniteError<SourcedNodeWrite<T>>>)>, int, int, RetryMode, SanitationMode, CancellationToken)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX