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
Enabled
Gets a value indicating whether retry policies are enabled.
public bool Enabled { get; init; }
Property Value
MaxAttempts
Gets the maximum number of retry attempts.
public int MaxAttempts { get; init; }
Property Value
MaxDelay
Gets the maximum delay between retry attempts.
public TimeSpan MaxDelay { get; init; }
Property Value
UseExponentialBackoff
Gets a value indicating whether to use exponential backoff for retry delays.
public bool UseExponentialBackoff { get; init; }
Property Value
UseJitter
Gets a value indicating whether retry delays are randomized to decorrelate concurrent clients.
public bool UseJitter { get; init; }
Property Value
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.