Class WaiterConfiguration
Provides configuration for Waiters.
Inherited Members
Namespace: Oci.Common.Waiters
Assembly: OCI.DotNetSDK.Common.dll
Syntax
public class WaiterConfiguration
Fields
DefaultWaiterConfiguration
Declaration
public static WaiterConfiguration DefaultWaiterConfiguration
Field Value
Type | Description |
---|---|
WaiterConfiguration |
Properties
GetNextDelayInSeconds
Function which enables the users to configure the sleep time in between the retries. This function takes the current retry attempt as input and returns the sleep time. Default delay strategy is expotential delay. Set GetNextDelayInSeconds to another delay strategy if necessary, e.g. DelayStrategy.GetFixedDelayInSeconds.
Declaration
public Func<int, double> GetNextDelayInSeconds { get; set; }
Property Value
Type | Description |
---|---|
Func<int, double> |
MaxAttempts
Maximum number of attempts to be made until the resource reaches a desired state.
Declaration
public int MaxAttempts { get; set; }
Property Value
Type | Description |
---|---|
int |