Class StepOperation<T>
java.lang.Object
software.amazon.lambda.durable.operation.BaseDurableOperation<T>
software.amazon.lambda.durable.operation.StepOperation<T>
- All Implemented Interfaces:
DurableFuture<T>
-
Field Summary
Fields inherited from class software.amazon.lambda.durable.operation.BaseDurableOperation
completionFuture -
Constructor Summary
ConstructorsConstructorDescriptionStepOperation(String operationId, String name, Function<StepContext, T> function, TypeToken<T> resultTypeToken, StepConfig config, DurableContext durableContext) -
Method Summary
Methods inherited from class software.amazon.lambda.durable.operation.BaseDurableOperation
deserializeException, deserializeResult, execute, getChildOperations, getContext, getCurrentThreadContext, getName, getOperation, getOperationId, getType, isOperationCompleted, markAlreadyCompleted, onCheckpointComplete, pollForOperationUpdates, pollForOperationUpdates, registerActiveThread, sendOperationUpdate, sendOperationUpdateAsync, serializeException, serializeResult, terminateExecution, terminateExecutionWithIllegalDurableOperationException, validateReplay, waitForOperationCompletion
-
Constructor Details
-
StepOperation
public StepOperation(String operationId, String name, Function<StepContext, T> function, TypeToken<T> resultTypeToken, StepConfig config, DurableContext durableContext)
-
-
Method Details
-
start
protected void start()Starts the operation.- Specified by:
startin classBaseDurableOperation<T>
-
replay
protected void replay(software.amazon.awssdk.services.lambda.model.Operation existing) Replays the operation.- Specified by:
replayin classBaseDurableOperation<T>
-
get
Description copied from interface:DurableFutureBlocks 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
-