RetryPolicy class
Beep.Skia.Model — class
Represents a retry policy for node execution failures.
Members
| Member | Kind | Description |
|---|---|---|
RetryPolicy(int maxRetries, TimeSpan retryDelay) | Method | Initializes a new instance of the RetryPolicy class. The maximum number of retry attempts. The delay between retry attempts. |
int MaxRetries | Property | Gets or sets the maximum number of retry attempts. |
TimeSpan RetryDelay | Property | Gets or sets the delay between retry attempts. |
RetryBackoffStrategy BackoffStrategy | Property | Gets or sets the backoff strategy for increasing delay between retries. |
TimeSpan? MaxRetryDelay | Property | Gets or sets the maximum delay between retries when using backoff. |
RetryPolicy Clone() | Method | Creates a copy of this retry policy. A new RetryPolicy instance that is a copy of this one. |
static RetryPolicy None() | Method | Creates a no-retry policy. A RetryPolicy that does not retry on failure. |
static RetryPolicy Simple(int maxRetries, int delaySeconds) | Method | Creates a simple retry policy with fixed delay. The maximum number of retries. The delay in seconds between retries. A RetryPolicy with the specified parameters. |
static RetryPolicy ExponentialBackoff(int maxRetries, int initialDelaySeconds, int maxDelaySeconds) | Method | Creates an exponential backoff retry policy. The maximum number of retries. The initial delay in seconds. The maximum delay in seconds. A RetryPolicy with exponential backoff. |