Table of Contents

Class ElasticSearchRetryPolicyOptions

Namespace
Excalibur.Data.ElasticSearch
Assembly
Excalibur.Data.ElasticSearch.dll

Configures retry policy behavior for transient failure handling.

public sealed class ElasticSearchRetryPolicyOptions
Inheritance
ElasticSearchRetryPolicyOptions
Inherited Members

Properties

BaseDelay

Gets the base delay for exponential backoff.

public TimeSpan BaseDelay { get; init; }

Property Value

TimeSpan

A TimeSpan representing the initial retry delay. Defaults to 1 second.

Enabled

Gets a value indicating whether retry policies are enabled.

public bool Enabled { get; init; }

Property Value

bool

A bool indicating whether retries are active. Defaults to true .

MaxAttempts

Gets the maximum number of retry attempts.

public int MaxAttempts { get; init; }

Property Value

int

An int representing the maximum retry count. Defaults to 3.

MaxDelay

Gets the maximum delay between retry attempts.

public TimeSpan MaxDelay { get; init; }

Property Value

TimeSpan

A TimeSpan representing the maximum retry delay. Defaults to 30 seconds.

UseExponentialBackoff

Gets a value indicating whether to use exponential backoff for retry delays.

public bool UseExponentialBackoff { get; init; }

Property Value

bool

A bool indicating whether to use exponential backoff. Defaults to true .

UseJitter

Gets a value indicating whether retry delays are randomized to decorrelate concurrent clients.

public bool UseJitter { get; init; }

Property Value

bool

true to randomize each delay; otherwise false. Defaults to true.

Remarks

Replaces a JitterFactor double that scaled a symmetric band. The retry strategy this feeds never applied that band: it passed JitterFactor > 0 as a boolean to the resilience pipeline's own jitter switch and discarded the magnitude entirely, so every value from 0.01 to 1.0 produced exactly the same behaviour and only zero differed. The knob advertised a precision it did not have; this names the one bit that was ever read.