Class CompletedDurableFuture<T>
java.lang.Object
software.amazon.lambda.durable.util.CompletedDurableFuture<T>
- Type Parameters:
T- the result type
- All Implemented Interfaces:
DurableFuture<T>
A
DurableFuture that is already completed with a value.
Used for short-circuit cases (e.g., empty collection in map) where no checkpoint or async execution is needed.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CompletedDurableFuture
-
-
Method Details
-
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
- Specified by:
getin interfaceDurableFuture<T>- Returns:
- the operation result
-