Skip to content

Class RetrySettings

Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll

Describes configuration-driven retry settings for a Cephalon app.

public sealed class RetrySettings

objectRetrySettings

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

RetrySettings(bool?, int?, string?, int?, int?, bool?)

Section titled “ RetrySettings(bool?, int?, string?, int?, int?, bool?)”

Initializes a new instance of the class.

public RetrySettings(bool? enabled = null, int? maxAttempts = null, string? backoff = null, int? baseDelayMilliseconds = null, int? maxDelayMilliseconds = null, bool? useJitter = null)

enabled bool?

Whether retry support was explicitly enabled.

maxAttempts int?

The maximum retry attempts requested for the policy.

backoff string?

The requested backoff mode, such as Exponential or Linear.

baseDelayMilliseconds int?

The base delay in milliseconds used by the retry policy.

maxDelayMilliseconds int?

The maximum delay in milliseconds the retry policy may apply.

useJitter bool?

Whether jitter was explicitly requested for retry delays.

Gets the requested backoff mode, such as Exponential or Linear.

public string? Backoff { get; }

string?

Gets the base delay in milliseconds used by the retry policy.

public int? BaseDelayMilliseconds { get; }

int?

Gets an empty retry-settings instance.

public static RetrySettings Empty { get; }

RetrySettings

Gets a value indicating whether retry support was explicitly enabled.

public bool? Enabled { get; }

bool?

Gets a value indicating whether any retry settings were explicitly supplied.

public bool HasValues { get; }

bool

Gets the maximum retry attempts requested for the policy.

public int? MaxAttempts { get; }

int?

Gets the maximum delay in milliseconds the retry policy may apply.

public int? MaxDelayMilliseconds { get; }

int?

Gets a value indicating whether jitter was explicitly requested for retry delays.

public bool? UseJitter { get; }

bool?