Class WaitForConditionConfig.Builder<T>

java.lang.Object
software.amazon.lambda.durable.config.WaitForConditionConfig.Builder<T>
Enclosing class:
WaitForConditionConfig<T>

public static class WaitForConditionConfig.Builder<T> extends Object
  • Method Details

    • waitStrategy

      public WaitForConditionConfig.Builder<T> waitStrategy(WaitForConditionWaitStrategy<T> 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

      public WaitForConditionConfig.Builder<T> serDes(SerDes 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

      public WaitForConditionConfig.Builder<T> initialState(T 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

      public WaitForConditionConfig<T> build()