Class StepConfig

java.lang.Object
software.amazon.lambda.durable.config.StepConfig

public class StepConfig extends Object
Configuration options for step operations in durable executions.

This class provides a builder pattern for configuring various aspects of step execution, including retry behavior and delivery semantics.

  • Method Details

    • retryStrategy

      public RetryStrategy retryStrategy()
      Returns the retry strategy for this step, or the default strategy if not specified.
    • semanticsPerRetry

      public StepSemantics semanticsPerRetry()
      Returns the delivery semantics per retry for this step, or StepSemantics.AT_LEAST_ONCE if not specified. A step that does not specify semantics uses DurableConfig.getDefaultStepSemantics().
    • semanticsPerRetryOrDefault

      public StepSemantics semanticsPerRetryOrDefault(StepSemantics defaultSemantics)
      Returns the delivery semantics per retry for this step, or the given default if not specified.
      Parameters:
      defaultSemantics - the semantics to return when this step does not specify any
      Returns:
      the semantics of this step
    • serDes

      public SerDes serDes()
      Returns the custom serializer for this step, or null if not specified (uses default SerDes).
    • toBuilder

      public StepConfig.Builder toBuilder()
    • builder

      public static StepConfig.Builder builder()
      Creates a new builder for StepConfig.
      Returns:
      a new Builder instance