Class DelayStrategy
Utility class which contains Fixed and Exponential delay strategies.
Inherited Members
Namespace: Oci.Common.Waiters
Assembly: OCI.DotNetSDK.Common.dll
Syntax
public class DelayStrategy
Methods
GetExponentialDelayInSeconds(int)
Returns base 2 exponential delay depending on the retryAttempt
Declaration
public static double GetExponentialDelayInSeconds(int retryAttempt)
Parameters
Type | Name | Description |
---|---|---|
int | retryAttempt | The current retry attempt. |
Returns
Type | Description |
---|---|
double | The delay duration in seconds. |
GetExponentialDelayWithDecorrelatedJitter(int)
Returns min of MAX_DELAY_BETWEEN_CALLS and base 2 exponential delay with DecorrelatedJitter Jitter depending on the retryAttempt
Declaration
public static double GetExponentialDelayWithDecorrelatedJitter(int retryAttempt)
Parameters
Type | Name | Description |
---|---|---|
int | retryAttempt | The current retry attempt. |
Returns
Type | Description |
---|---|
double | The delay duration in seconds. |
GetFixedDelayInSeconds(int)
Returns DEFAULT_DELAY value.
Declaration
public static double GetFixedDelayInSeconds(int _)
Parameters
Type | Name | Description |
---|---|---|
int | _ |
Returns
Type | Description |
---|---|
double |