Class StepOperation<T>

Type Parameters:
T - the result type of the step function
All Implemented Interfaces:
DurableFuture<T>

public class StepOperation<T> extends SerializableDurableOperation<T>
Durable operation that executes a user-provided function with retry support.

Steps are the primary unit of work in a durable execution. Each step is checkpointed before and after execution, enabling automatic retry on failure and replay on re-invocation.

  • Constructor Details

  • Method Details

    • start

      protected void start()
      Starts the operation.
      Specified by:
      start in class BaseDurableOperation
    • replay

      protected void replay(software.amazon.awssdk.services.lambda.model.Operation existing)
      Replays the operation.
      Specified by:
      replay in class BaseDurableOperation
      Parameters:
      existing - the checkpointed operation state
    • get

      public T get()
      Description copied from interface: DurableFuture
      Blocks until the operation completes and returns the result.

      This delegates to operation.get() which handles: - Thread deregistration (allows suspension) - Thread reactivation (resumes execution) - Result retrieval

      Specified by:
      get in interface DurableFuture<T>
      Specified by:
      get in class SerializableDurableOperation<T>
      Returns:
      the operation result