A B C D F G H I J K L M N O P R S T W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- all(Awaitable<?>, Awaitable<?>, Awaitable<?>...) - Static method in class dev.restate.sdk.Awaitable
-
Create an
Awaitablethat awaits all the given awaitables. - all(List<Awaitable<?>>) - Static method in class dev.restate.sdk.Awaitable
-
Create an
Awaitablethat awaits all the given awaitables. - any(Awaitable<?>, Awaitable<?>, Awaitable<?>...) - Static method in class dev.restate.sdk.Awaitable
-
Create an
Awaitablethat awaits any of the given awaitables. - any(List<Awaitable<?>>) - Static method in class dev.restate.sdk.Awaitable
-
Create an
Awaitablethat awaits any of the given awaitables. - AnyAwaitable - Class in dev.restate.sdk
- await() - Method in class dev.restate.sdk.Awaitable
-
Wait for the current awaitable to complete.
- await(Duration) - Method in class dev.restate.sdk.Awaitable
-
Same as
Awaitable.await(), but throws aTimeoutExceptionif thisAwaitabledoesn't complete before the providedtimeout. - awaitable() - Method in interface dev.restate.sdk.DurablePromise
- Awaitable<T> - Class in dev.restate.sdk
-
An
Awaitableallows to await an asynchronous result. - awaitIndex() - Method in class dev.restate.sdk.AnyAwaitable
-
Same as
Awaitable.await(), but returns the index. - awaitResult() - Method in class dev.restate.sdk.Awaitable
- awakeable(Serde<T>) - Method in interface dev.restate.sdk.Context
-
Create an
Awakeable, addressable throughAwakeable.id(). - Awakeable<T> - Class in dev.restate.sdk
-
An
Awakeableis a special type ofAwaitablewhich can be arbitrarily completed by another service, by addressing it with itsAwakeable.id(). - awakeableHandle(String) - Method in interface dev.restate.sdk.Context
-
Create a new
AwakeableHandlefor the provided identifier. - AwakeableHandle - Interface in dev.restate.sdk
-
This class represents a handle to an
Awakeablecreated in another service.
B
- BOOLEAN - Static variable in class dev.restate.sdk.JsonSerdes
-
SerdeforBoolean. - BYTE - Static variable in class dev.restate.sdk.JsonSerdes
-
SerdeforByte.
C
- call(Target, byte[]) - Method in interface dev.restate.sdk.Context
-
Like
Context.call(Target, Serde, Serde, Object)with raw input/output. - call(Target, Serde<T>, Serde<R>, T) - Method in interface dev.restate.sdk.Context
-
Invoke another Restate service method.
- clear(StateKey<?>) - Method in interface dev.restate.sdk.ObjectContext
-
Clears the state stored under key.
- clearAll() - Method in interface dev.restate.sdk.ObjectContext
-
Clears all the state of this virtual object instance key-value state storage
- Context - Interface in dev.restate.sdk
-
This interface exposes the Restate functionalities to Restate services.
D
- DEFAULT - Static variable in class dev.restate.sdk.HandlerRunner.Options
- deferred() - Method in class dev.restate.sdk.Awaitable
- dev.restate.sdk - package dev.restate.sdk
- DOUBLE - Static variable in class dev.restate.sdk.JsonSerdes
-
SerdeforDouble. - DurablePromise<T> - Interface in dev.restate.sdk
-
A
DurablePromiseis a durable, distributed version of aCompletableFuture. - DurablePromiseHandle<T> - Interface in dev.restate.sdk
-
This class represents a handle to an
DurablePromisecreated in another handler.
F
- FLOAT - Static variable in class dev.restate.sdk.JsonSerdes
-
SerdeforFloat.
G
- get(StateKey<T>) - Method in interface dev.restate.sdk.SharedObjectContext
-
Gets the state stored under key, deserializing the raw value using the
Serdein theStateKey.
H
- HandlerRunner<REQ,RES> - Class in dev.restate.sdk
-
Adapter class for
HandlerRunnerto use the Java API. - HandlerRunner.Options - Class in dev.restate.sdk
I
- id() - Method in class dev.restate.sdk.Awakeable
- INT - Static variable in class dev.restate.sdk.JsonSerdes
-
SerdeforInteger.
J
- JsonSerdes - Class in dev.restate.sdk
-
Collection of common serializers/deserializers.
K
- key() - Method in interface dev.restate.sdk.SharedObjectContext
L
- LONG - Static variable in class dev.restate.sdk.JsonSerdes
-
SerdeforLong.
M
- map(ThrowingFunction<T, U>) - Method in class dev.restate.sdk.Awaitable
-
Map the result of this
Awaitable.
N
- next(int) - Method in class dev.restate.sdk.RestateRandom
- nextUUID() - Method in class dev.restate.sdk.RestateRandom
O
- ObjectContext - Interface in dev.restate.sdk
-
This interface can be used only within exclusive handlers of virtual objects.
- of(BiConsumer<CTX, REQ>) - Static method in class dev.restate.sdk.HandlerRunner
- of(BiFunction<CTX, REQ, RES>) - Static method in class dev.restate.sdk.HandlerRunner
- of(Consumer<CTX>) - Static method in class dev.restate.sdk.HandlerRunner
- of(Function<CTX, RES>) - Static method in class dev.restate.sdk.HandlerRunner
- Options(Executor) - Constructor for class dev.restate.sdk.HandlerRunner.Options
-
You can run on virtual threads by using the executor
Executors.newVirtualThreadPerTaskExecutor().
P
- peek() - Method in interface dev.restate.sdk.DurablePromise
- promise(DurablePromiseKey<T>) - Method in interface dev.restate.sdk.SharedWorkflowContext
-
Create a
DurablePromisefor the given key. - promiseHandle(DurablePromiseKey<T>) - Method in interface dev.restate.sdk.SharedWorkflowContext
-
Create a new
DurablePromiseHandlefor the provided key.
R
- random() - Method in interface dev.restate.sdk.Context
- reject(String) - Method in interface dev.restate.sdk.AwakeableHandle
-
Complete with failure the
Awakeable. - reject(String) - Method in interface dev.restate.sdk.DurablePromiseHandle
-
Complete with failure the
DurablePromise. - request() - Method in interface dev.restate.sdk.Context
- resolve(Serde<T>, T) - Method in interface dev.restate.sdk.AwakeableHandle
-
Complete with success the
Awakeable. - resolve(T) - Method in interface dev.restate.sdk.DurablePromiseHandle
-
Complete with success the
DurablePromise. - RestateRandom - Class in dev.restate.sdk
-
Subclass of
Randominherently predictable, seeded on theInvocationId, which is not secret. - run(ThrowingRunnable) - Method in interface dev.restate.sdk.Context
-
Like
Context.run(String, ThrowingRunnable), but without a name. - run(Serde<T>, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
-
Like
Context.run(String, Serde, ThrowingSupplier), but without a name. - run(HandlerSpecification<REQ, RES>, Syscalls, HandlerRunner.Options, SyscallCallback<ByteBuffer>) - Method in class dev.restate.sdk.HandlerRunner
- run(String, ThrowingRunnable) - Method in interface dev.restate.sdk.Context
-
Like
Context.run(String, Serde, ThrowingSupplier), but without returning a value. - run(String, Serde<T>, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
-
Execute a non-deterministic closure, recording the result value in the journal.
S
- send(Target, byte[]) - Method in interface dev.restate.sdk.Context
-
Like
Context.send(Target, Serde, Object)with bytes input. - send(Target, byte[], Duration) - Method in interface dev.restate.sdk.Context
-
Like
Context.send(Target, Serde, Object, Duration)with bytes input. - send(Target, Serde<T>, T) - Method in interface dev.restate.sdk.Context
-
Invoke another Restate service without waiting for the response.
- send(Target, Serde<T>, T, Duration) - Method in interface dev.restate.sdk.Context
-
Invoke another Restate service without waiting for the response after the provided
delayhas elapsed. - set(StateKey<T>, T) - Method in interface dev.restate.sdk.ObjectContext
-
Sets the given value under the given key, serializing the value using the
Serdein theStateKey. - setSeed(long) - Method in class dev.restate.sdk.RestateRandom
- SharedObjectContext - Interface in dev.restate.sdk
-
This interface can be used only within shared handlers of virtual objects.
- SharedWorkflowContext - Interface in dev.restate.sdk
-
This interface can be used only within shared handlers of workflow.
- SHORT - Static variable in class dev.restate.sdk.JsonSerdes
-
SerdeforShort. - sleep(Duration) - Method in interface dev.restate.sdk.Context
-
Causes the current execution of the function invocation to sleep for the given duration.
- stateKeys() - Method in interface dev.restate.sdk.SharedObjectContext
-
Gets all the known state keys for this virtual object instance.
- STRING - Static variable in class dev.restate.sdk.JsonSerdes
-
SerdeforString. - syscalls - Variable in class dev.restate.sdk.Awaitable
T
- timer(Duration) - Method in interface dev.restate.sdk.Context
-
Causes the start of a timer for the given duration.
W
- WorkflowContext - Interface in dev.restate.sdk
-
This interface can be used only within workflow handlers of workflow.
All Classes All Packages