Class Incremental
A retry strategy with a specified number of retry attempts and an incremental time interval between retries.
Namespace: Umbraco.Core.Persistence.FaultHandling.Strategies
Assembly: Umbraco.Core.dll
Syntax
public class Incremental : RetryStrategy
Constructors
View SourceIncremental()
Initializes a new instance of the Incremental class.
Declaration
public Incremental()
Incremental(Int32, TimeSpan, TimeSpan)
Initializes a new instance of the Incremental class.
Declaration
public Incremental(int retryCount, TimeSpan initialInterval, TimeSpan increment)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | retryCount | The number of retry attempts. |
System.TimeSpan | initialInterval | The initial interval that will apply for the first retry. |
System.TimeSpan | increment | The incremental time value that will be used for calculating the progressive delay between retries. |
Incremental(String, Int32, TimeSpan, TimeSpan)
Initializes a new instance of the Incremental class.
Declaration
public Incremental(string name, int retryCount, TimeSpan initialInterval, TimeSpan increment)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The retry strategy name. |
System.Int32 | retryCount | The number of retry attempts. |
System.TimeSpan | initialInterval | The initial interval that will apply for the first retry. |
System.TimeSpan | increment | The incremental time value that will be used for calculating the progressive delay between retries. |
Incremental(String, Int32, TimeSpan, TimeSpan, Boolean)
Initializes a new instance of the Incremental class.
Declaration
public Incremental(string name, int retryCount, TimeSpan initialInterval, TimeSpan increment, bool firstFastRetry)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The retry strategy name. |
System.Int32 | retryCount | The number of retry attempts. |
System.TimeSpan | initialInterval | The initial interval that will apply for the first retry. |
System.TimeSpan | increment | The incremental time value that will be used for calculating the progressive delay between retries. |
System.Boolean | firstFastRetry | a value indicating whether or not the very first retry attempt will be made immediately whereas the subsequent retries will remain subject to retry interval. |
Methods
View SourceGetShouldRetry()
Returns the corresponding ShouldRetry delegate.
Declaration
public override ShouldRetry GetShouldRetry()
Returns
Type | Description |
---|---|
ShouldRetry | The ShouldRetry delegate. |