Package dev.restate.sdk
package dev.restate.sdk
-
ClassDescriptionAwakeable<T>An
Awakeable
is a special type ofDurableFuture
which can be arbitrarily completed by another service, by addressing it with itsAwakeable.id()
.This class represents a handle to anAwakeable
created in another service.DurableFuture
returned by a call to another service.This interface exposes the Restate functionalities to Restate services.ADurableFuture
allows to await an asynchronous result.ADurablePromise
is a durable, distributed version of aCompletableFuture
.This class represents a handle to anDurablePromise
created in another handler.HandlerRunner<REQ,RES> Adapter class forHandlerRunner
to use the Java API.HandlerRunner
options.InvocationHandle<Res>Handle to interact with an invocation.Deprecated, for removal: This API element is subject to removal in a future version.This interface can be used only within exclusive handlers of virtual objects.Preview of new context features.Subclass ofRandom
inherently predictable, seeded on theInvocationId
, which is not secret.Select<T>Select lets you await concurrently for multipleDurableFuture
s to complete, and for the first one to complete, either return its value directly or map it.This interface can be used only within shared handlers of virtual objects.This interface can be used only within shared handlers of workflow.This interface can be used only within workflow handlers of workflow.
Context
/StateKey
/DurablePromiseKey
methods acceptingClass
, for examplectx.run(String.class, myClosure)
orctx.awakeable(Integer.TYPE)
orStateKey.of("key", String.class)