Table of Contents

Interface IDataRequestRetryPolicy

Namespace
Excalibur.Data.Resilience
Assembly
Excalibur.Data.Abstractions.dll

Core retry policy interface for data providers. Defines retry configuration and transient failure detection without prescribing execution patterns.

public interface IDataRequestRetryPolicy

Remarks

This is the minimal core interface that ALL data providers implement, including cloud-native providers (DynamoDb, CosmosDb, Firestore) that use their own SDK patterns instead of the IDataRequest<TConnection, TModel> pattern.

For providers that support the connection-factory execution pattern, use the sub-interfaces:

Properties

BaseRetryDelay

Gets the base delay between retry attempts.

TimeSpan BaseRetryDelay { get; }

Property Value

TimeSpan

The base delay between retry attempts.

MaxRetryAttempts

Gets the maximum number of retry attempts.

int MaxRetryAttempts { get; }

Property Value

int

The maximum number of retry attempts.

Methods

ShouldRetry(Exception)

Determines if an exception represents a transient failure that should be retried.

bool ShouldRetry(Exception exception)

Parameters

exception Exception

The exception to evaluate.

Returns

bool

True if the exception represents a transient failure; otherwise, false.