Class WaitForConditionConfig.Builder<T>
java.lang.Object
software.amazon.lambda.durable.config.WaitForConditionConfig.Builder<T>
- Enclosing class:
- WaitForConditionConfig<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()initialState(T initialState) Sets the initial state for the waitForCondition operation.Sets a custom serializer for the waitForCondition operation.waitStrategy(WaitForConditionWaitStrategy<T> waitStrategy) Sets the wait strategy for the waitForCondition operation.
-
Method Details
-
waitStrategy
Sets the wait strategy for the waitForCondition operation.If not specified, the default exponential backoff strategy from
WaitStrategies.defaultStrategy()is used.- Parameters:
waitStrategy- the strategy controlling polling intervals and termination- Returns:
- this builder for method chaining
-
serDes
Sets a custom serializer for the waitForCondition operation.If not specified, the operation will use the default SerDes configured for the handler.
- Parameters:
serDes- the custom serializer to use, or null to use the default- Returns:
- this builder for method chaining
-
initialState
Sets the initial state for the waitForCondition operation. The initial state will be null if it's not set.- Parameters:
initialState- the initial state object to pass to the condition function- Returns:
- this builder for method chaining
-
build
-