Class FixedInterval
A retry strategy with a specified number of retry attempts and a default fixed time interval between retries.
Namespace: Umbraco.Core.Persistence.FaultHandling.Strategies
Assembly: Umbraco.Core.dll
Syntax
public class FixedInterval : RetryStrategy
Constructors
View SourceFixedInterval()
Initializes a new instance of the FixedInterval class.
Declaration
public FixedInterval()
FixedInterval(Int32)
Initializes a new instance of the FixedInterval class.
Declaration
public FixedInterval(int retryCount)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | retryCount | The number of retry attempts. |
FixedInterval(Int32, TimeSpan)
Initializes a new instance of the FixedInterval class.
Declaration
public FixedInterval(int retryCount, TimeSpan retryInterval)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | retryCount | The number of retry attempts. |
System.TimeSpan | retryInterval | The time interval between retries. |
FixedInterval(String, Int32, TimeSpan)
Initializes a new instance of the FixedInterval class.
Declaration
public FixedInterval(string name, int retryCount, TimeSpan retryInterval)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The retry strategy name. |
System.Int32 | retryCount | The number of retry attempts. |
System.TimeSpan | retryInterval | The time interval between retries. |
FixedInterval(String, Int32, TimeSpan, Boolean)
Initializes a new instance of the FixedInterval class.
Declaration
public FixedInterval(string name, int retryCount, TimeSpan retryInterval, bool firstFastRetry)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The retry strategy name. |
System.Int32 | retryCount | The number of retry attempts. |
System.TimeSpan | retryInterval | The time interval 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. |