Class InvokeOperation<T,U>
java.lang.Object
software.amazon.lambda.durable.operation.BaseDurableOperation<T>
software.amazon.lambda.durable.operation.InvokeOperation<T,U>
- All Implemented Interfaces:
DurableFuture<T>
-
Field Summary
Fields inherited from class software.amazon.lambda.durable.operation.BaseDurableOperation
completionFuture -
Constructor Summary
ConstructorsConstructorDescriptionInvokeOperation(String operationId, String name, String functionName, U payload, TypeToken<T> resultTypeToken, InvokeConfig 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
-
InvokeOperation
public InvokeOperation(String operationId, String name, String functionName, U payload, TypeToken<T> resultTypeToken, InvokeConfig 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
Blocks until the operation completes and returns the result.- Returns:
- the operation result
-