Class WaitForConditionConfig<T>
java.lang.Object
software.amazon.lambda.durable.config.WaitForConditionConfig<T>
- Type Parameters:
T- the type of state being polled
Configuration for
waitForCondition operations.
Holds only optional parameters for a waitForCondition call. Use builder() to create instances.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> WaitForConditionConfig.Builder<T>builder()Creates a new builder forWaitForConditionConfig.Returns the initial state object, or null if not specified.serDes()Returns the custom serializer, or null if not specified (uses default SerDes).Returns a new builder initialized with the values from this config.Returns the wait strategy that controls polling behavior.
-
Method Details
-
waitStrategy
Returns the wait strategy that controls polling behavior. If no strategy was explicitly set, returns the default strategy fromWaitStrategies.defaultStrategy(). -
serDes
Returns the custom serializer, or null if not specified (uses default SerDes). -
initialState
Returns the initial state object, or null if not specified. -
toBuilder
Returns a new builder initialized with the values from this config. Useful internally for injecting default SerDes.- Returns:
- a new builder pre-populated with this config's values
-
builder
Creates a new builder forWaitForConditionConfig. All fields are optional.- Type Parameters:
T- the type of state being polled- Returns:
- a new builder instance
-