Package-level declarations
Types
This class represents a handle to an Awakeable created in another service.
A DurablePromise is a durable, distributed version of a Kotlin's Deferred, or more commonly of a future/promise. Restate keeps track of the DurablePromise across restarts/failures.
This class represents a handle to a DurablePromise created in another service.
Adapter class for dev.restate.sdk.common.syscalls.HandlerRunner to use the Kotlin API.
This interface can be used only within exclusive handlers of virtual objects. It extends Context adding access to the virtual object instance key-value state storage.
This interface can be used only within shared handlers of virtual objects. It extends Context adding access to the virtual object instance key-value state storage.
This interface can be used only within shared handlers of workflow. It extends Context adding access to the workflow instance key-value state storage and to the DurablePromise API.
Opt-in annotation to use the preview of new context features.
This interface can be used only within workflow handlers of workflow. It extends Context adding access to the workflow instance key-value state storage and to the DurablePromise API.
Functions
Create an Awakeable using KtSerdes.json deserializer, addressable through Awakeable.id.
Complete with success the Awakeable using KtSerdes.json serializer.
Execute a non-deterministic closure, recording the result value in the journal using KtSerdes.json. The result value will be re-played in case of re-invocation (e.g. because of failure recovery or suspension point) without re-executing the closure. Use this feature if you want to perform non-deterministic operations.