Class StepConfig.Builder
java.lang.Object
software.amazon.lambda.durable.config.StepConfig.Builder
- Enclosing class:
- StepConfig
Builder for creating StepConfig instances.
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(RetryStrategy retryStrategy, StepSemantics semanticsPerRetry, SerDes serDes) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the StepConfig instance.retryStrategy(RetryStrategy retryStrategy) Sets the retry strategy for the step.semanticsPerRetry(StepSemantics semanticsPerRetry) Sets the delivery semantics per retry for the step.Sets a custom serializer for the step.
-
Constructor Details
-
Builder
-
-
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
-
semanticsPerRetry
Sets the delivery semantics per retry for the step.- Parameters:
semanticsPerRetry- the delivery semantics to use- 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
-