Awakeable
An Awakeable is a special type of DurableFuture which can be arbitrarily completed by another service, by addressing it with its id.
It can be used to let a service wait on a specific condition/result, which is fulfilled by another service or by an external system at a later point in time.
For example, you can send a Kafka record including the Awakeable.id, and then let another service consume from Kafka the responses of given external system interaction by using RestateContext.awakeableHandle.
Properties
Functions
Wait for this DurableFuture to complete.
Same as await but throws a dev.restate.sdk.common.TimeoutException if this DurableFuture doesn't complete before the provided timeout
.
Map the success result of this DurableFuture.
Map both the success and the failure result of this DurableFuture.
Map the failure result of this DurableFuture.
Creates a DurableFuture that throws a dev.restate.sdk.common.TimeoutException if this future doesn't complete before the provided timeout
.