Class ChildContextOperation<T>

java.lang.Object
software.amazon.lambda.durable.operation.BaseDurableOperation<T>
software.amazon.lambda.durable.operation.ChildContextOperation<T>
All Implemented Interfaces:
DurableFuture<T>

public class ChildContextOperation<T> extends BaseDurableOperation<T>
Manages the lifecycle of a child execution context.

A child context runs a user function in a separate thread with its own operation counter and checkpoint log. Operations within the child context use the child's context ID as their parentId.

  • Constructor Details

  • Method Details

    • start

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

      protected void replay(software.amazon.awssdk.services.lambda.model.Operation existing)
      Replays the operation.
      Specified by:
      replay in class BaseDurableOperation<T>
    • 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

      Returns:
      the operation result