Class WaitOperation
java.lang.Object
software.amazon.lambda.durable.operation.BaseDurableOperation<Void>
software.amazon.lambda.durable.operation.WaitOperation
- All Implemented Interfaces:
DurableFuture<Void>
-
Field Summary
Fields inherited from class software.amazon.lambda.durable.operation.BaseDurableOperation
completionFuture -
Constructor Summary
ConstructorsConstructorDescriptionWaitOperation(String operationId, String name, Duration duration, 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
-
WaitOperation
public WaitOperation(String operationId, String name, Duration duration, DurableContext durableContext)
-
-
Method Details
-
start
protected void start()Starts the operation.- Specified by:
startin classBaseDurableOperation<Void>
-
replay
protected void replay(software.amazon.awssdk.services.lambda.model.Operation existing) Replays the operation.- Specified by:
replayin classBaseDurableOperation<Void>
-
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
-