Class WaitForConditionConfig<T>

java.lang.Object
software.amazon.lambda.durable.config.WaitForConditionConfig<T>
Type Parameters:
T - the type of state being polled

public class WaitForConditionConfig<T> extends Object
Configuration for waitForCondition operations.

Holds only optional parameters for a waitForCondition call. Use builder() to create instances.

  • Method Details

    • waitStrategy

      public WaitForConditionWaitStrategy<T> waitStrategy()
      Returns the wait strategy that controls polling behavior. If no strategy was explicitly set, returns the default strategy from WaitStrategies.defaultStrategy().
    • serDes

      public SerDes serDes()
      Returns the custom serializer, or null if not specified (uses default SerDes).
    • initialState

      public T initialState()
      Returns the initial state object, or null if not specified.
    • toBuilder

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

      public static <T> WaitForConditionConfig.Builder<T> builder()
      Creates a new builder for WaitForConditionConfig. All fields are optional.
      Type Parameters:
      T - the type of state being polled
      Returns:
      a new builder instance