Class DataResilienceConfiguration
This class contains the definition for a data resiliance strategy. Specifically: when to retry and when to circuit break.
This class is created as a configuration entry in an array in the DataResilienceStrategies property of the DataConfigurationOptions class.
Inheritance
System.Object
DataResilienceConfiguration
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: ArgentSea.dll
Syntax
public class DataResilienceConfiguration
Properties
|
Improve this Doc
View Source
CircuitBreakerFailureCount
If a connection or command consistantly fails, the circuit breaker will reject all further connections until one suceeds.
This setting determines how many failures (after retries, if retry-able) before blocking all connections apart from a few periodic test attempts.
Declaration
public int CircuitBreakerFailureCount { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CircuitBreakerTestInterval
If a connection or command fails, the circuit breaker will reject all further connections until one suceeds.
This setting determines how long (in milliseonds) the system should wait before allowing a test connection.
Declaration
public int CircuitBreakerTestInterval { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ResilienceKey
Declaration
public string ResilienceKey { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
RetryCount
Declaration
public int RetryCount { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
RetryInterval
This is the number of milliseconds to wait before retrying a “retry-able” connection or command error. Default is 500 ms.
This interval may be extended with each retry, depending upon the RetryLengthening setting, up to RetryCount.
Declaration
public int RetryInterval { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
RetryLengthening
If a connection or command fails, this setting determines how much each subsequent retry should be further delayed.
Declaration
public DataResilienceConfiguration.SequenceLengthening RetryLengthening { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
HandleRetryTimespan(Int32)
Declaration
public TimeSpan HandleRetryTimespan(int attempt)
Parameters
Type |
Name |
Description |
System.Int32 |
attempt |
|
Returns
Type |
Description |
System.TimeSpan |
|