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.
    • semantics

      @Deprecated(forRemoval=true) public StepSemantics semantics()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use semanticsPerRetry() instead. This method has incorrect behavior where AT_MOST_ONCE_PER_RETRY does not retry after step interruption.
      Returns the delivery semantics for this step, defaults to AT_LEAST_ONCE_PER_RETRY if not specified.
    • semanticsPerRetry

      public StepSemantics semanticsPerRetry()
      Returns the delivery semantics per retry for this step, or null if not specified.
    • 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