Package software.amazon.lambda.durable
Class StepConfig.Builder
java.lang.Object
software.amazon.lambda.durable.StepConfig.Builder
- Enclosing class:
- StepConfig
Builder for creating StepConfig instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the StepConfig instance.retryStrategy(RetryStrategy retryStrategy) Sets the retry strategy for the step.semantics(StepSemantics semantics) Sets the delivery semantics for the step.Sets a custom serializer for the step.
-
Method Details
-
retryStrategy
Sets the retry strategy for the step.- Parameters:
retryStrategy- the retry strategy to use, or null for default behavior- Returns:
- this builder for method chaining
-
semantics
Sets the delivery semantics for the step.- Parameters:
semantics- the delivery semantics to use, defaults to AT_LEAST_ONCE_PER_RETRY if not specified- Returns:
- this builder for method chaining
-
serDes
Sets a custom serializer for the step.If not specified, the step will use the default SerDes configured for the handler. This allows per-step customization of serialization behavior, useful for steps that need special handling (e.g., custom date formats, encryption, compression).
- Parameters:
serDes- the custom serializer to use, or null to use the default- Returns:
- this builder for method chaining
-
build
Builds the StepConfig instance.- Returns:
- a new StepConfig with the configured options
-