Class JitterType
Values allowed in the retrier JitterStrategy field.
Inheritance
System.Object
JitterType
Namespace: Amazon.CDK.AWS.StepFunctions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class JitterType : Enum
Syntax (vb)
Public NotInheritable Class JitterType
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
var parallel = new Parallel(this, "Do the work in parallel");
// Add branches to be executed in parallel
var shipItem = new Pass(this, "ShipItem");
var sendInvoice = new Pass(this, "SendInvoice");
var restock = new Pass(this, "Restock");
parallel.Branch(shipItem);
parallel.Branch(sendInvoice);
parallel.Branch(restock);
// Retry the whole workflow if something goes wrong with exponential backoff
parallel.AddRetry(new RetryProps {
MaxAttempts = 1,
MaxDelay = Duration.Seconds(5),
JitterStrategy = JitterType.FULL
});
// How to recover from errors
var sendFailureNotification = new Pass(this, "SendFailureNotification");
parallel.AddCatch(sendFailureNotification);
// What to do in case everything succeeded
var closeOrder = new Pass(this, "CloseOrder");
parallel.Next(closeOrder);
Synopsis
Fields
FULL | Calculates the delay to be a random number between 0 and the computed backoff for the given retry attempt count. |
NONE | Calculates the delay to be the computed backoff for the given retry attempt count (equivalent to if Jitter was not declared - i.e. the default value). |
value__ |
Fields
FULL
Calculates the delay to be a random number between 0 and the computed backoff for the given retry attempt count.
public const JitterType FULL
Field Value
Type | Description |
---|---|
JitterType |
NONE
Calculates the delay to be the computed backoff for the given retry attempt count (equivalent to if Jitter was not declared - i.e. the default value).
public const JitterType NONE
Field Value
Type | Description |
---|---|
JitterType |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |