Package dev.restate.sdk
package dev.restate.sdk
-
ClassDescriptionAwakeable<T>An
Awakeableis a special type ofDurableFuturewhich can be arbitrarily completed by another service, by addressing it with itsAwakeable.id().This class represents a handle to anAwakeablecreated in another service.DurableFuturereturned by a call to another service.Deprecated, for removal: This API element is subject to removal in a future version.ADurableFutureallows to await an asynchronous result.ADurablePromiseis a durable, distributed version of aCompletableFuture.This class represents a handle to anDurablePromisecreated in another handler.HandlerRunner<REQ,RES> Adapter class forHandlerRunnerto use the Java API.HandlerRunneroptions, to configure the executor to use to run your services, and the interceptors.InvocationHandle<Res>Handle to interact with an invocation.Deprecated, for removal: This API element is subject to removal in a future version.For primitive types, simply use the overloads of theContext/StateKey/DurablePromiseKeymethods acceptingClass, for examplectx.run(String.class, myClosure)orctx.awakeable(Integer.TYPE)orStateKey.of("key", String.class)Deprecated, for removal: This API element is subject to removal in a future version.TheContext-parameter programming model is superseded by the reflection-based API.Preview of new context features.This class exposes the Restate functionalities to Restate services using the reflection-based API.Interface to interact with this Virtual Object/Workflow state.Subclass ofRandominherently predictable, seeded on theInvocationId, which is not secret.PREVIEW: A context for making RPC calls within a specific scope.Select<T>Select lets you await concurrently for multipleDurableFutures to complete, and for the first one to complete, either return its value directly or map it.ServiceHandle<SVC>Advanced API handle for invoking Restate services, virtual objects, or workflows with full control.Deprecated, for removal: This API element is subject to removal in a future version.TheContext-parameter programming model is superseded by the reflection-based API.Deprecated, for removal: This API element is subject to removal in a future version.TheContext-parameter programming model is superseded by the reflection-based API.Handle to resolve or reject a named signal on a target invocation.Deprecated, for removal: This API element is subject to removal in a future version.TheContext-parameter programming model is superseded by the reflection-based API.
Context-parameter programming model is superseded by the reflection-based API.