Class StepConfig
java.lang.Object
software.amazon.lambda.durable.config.StepConfig
Configuration options for step operations in durable executions.
This class provides a builder pattern for configuring various aspects of step execution, including retry behavior and delivery semantics.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating StepConfig instances. -
Method Summary
Modifier and TypeMethodDescriptionstatic StepConfig.Builderbuilder()Creates a new builder for StepConfig.Returns the retry strategy for this step, or the default strategy if not specified.Deprecated, for removal: This API element is subject to removal in a future version.Returns the delivery semantics per retry for this step, or null if not specified.serDes()Returns the custom serializer for this step, or null if not specified (uses default SerDes).
-
Method Details
-
retryStrategy
Returns the retry strategy for this step, or the default strategy if not specified. -
semantics
Deprecated, for removal: This API element is subject to removal in a future version.UsesemanticsPerRetry()instead. This method has incorrect behavior where AT_MOST_ONCE_PER_RETRY does not retry after step interruption.Returns the delivery semantics for this step, defaults to AT_LEAST_ONCE_PER_RETRY if not specified. -
semanticsPerRetry
Returns the delivery semantics per retry for this step, or null if not specified. -
serDes
Returns the custom serializer for this step, or null if not specified (uses default SerDes). -
toBuilder
-
builder
Creates a new builder for StepConfig.- Returns:
- a new Builder instance
-
semanticsPerRetry()instead.