A B C D G H I K M N O R S T V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractServiceBuilder(String) - Constructor for class dev.restate.sdk.Service.AbstractServiceBuilder
- all(Awaitable<?>, Awaitable<?>, 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. - 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<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
- build(Service.Options) - Method in class dev.restate.sdk.Service.ServiceBuilder
- build(Service.Options) - Method in class dev.restate.sdk.Service.VirtualObjectBuilder
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.Service.Options
- deferred() - Method in class dev.restate.sdk.Awaitable
- definitions() - Method in class dev.restate.sdk.Service
- dev.restate.sdk - package dev.restate.sdk
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. - getHandlerSignature() - Method in class dev.restate.sdk.Service.Handler
- getName() - Method in class dev.restate.sdk.Service.HandlerSignature
- getRequestSerde() - Method in class dev.restate.sdk.Service.HandlerSignature
- getResponseSerde() - Method in class dev.restate.sdk.Service.HandlerSignature
- getRunner() - Method in class dev.restate.sdk.Service.Handler
H
- handle(Syscalls, Service.Options, SyscallCallback<ByteString>) - Method in class dev.restate.sdk.Service.Handler
- Handler(Service.HandlerSignature<REQ, RES>, HandlerType, BiFunction<? extends Context, REQ, RES>) - Constructor for class dev.restate.sdk.Service.Handler
- handlers - Variable in class dev.restate.sdk.Service.AbstractServiceBuilder
I
K
- key() - Method in interface dev.restate.sdk.SharedObjectContext
M
- map(ThrowingFunction<T, U>) - Method in class dev.restate.sdk.Awaitable
-
Map the result of this
Awaitable.
N
- name - Variable in class dev.restate.sdk.Service.AbstractServiceBuilder
- 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 extends
Contextadding access to the virtual object instance key-value state storage - of(String, Serde<T>, Serde<R>) - Static method in class dev.restate.sdk.Service.HandlerSignature
- options() - Method in class dev.restate.sdk.Service
- Options(Executor) - Constructor for class dev.restate.sdk.Service.Options
-
You can run on virtual threads by using the executor
Executors.newVirtualThreadPerTaskExecutor().
R
- random() - Method in interface dev.restate.sdk.Context
- reject(String) - Method in interface dev.restate.sdk.AwakeableHandle
-
Complete with failure the
Awakeable. - request() - Method in interface dev.restate.sdk.Context
- resolve(Serde<T>, T) - Method in interface dev.restate.sdk.AwakeableHandle
-
Complete with success the
Awakeable. - 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(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 raw input. - send(Target, byte[], Duration) - Method in interface dev.restate.sdk.Context
-
Like
Context.send(Target, Serde, Object, Duration)with raw 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. - service(String) - Static method in class dev.restate.sdk.Service
- Service - Class in dev.restate.sdk
- Service.AbstractServiceBuilder - Class in dev.restate.sdk
- Service.Handler<REQ,RES> - Class in dev.restate.sdk
- Service.HandlerSignature<REQ,RES> - Class in dev.restate.sdk
- Service.Options - Class in dev.restate.sdk
- Service.ServiceBuilder - Class in dev.restate.sdk
- Service.VirtualObjectBuilder - Class in dev.restate.sdk
- 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 extends
Contextadding access to the virtual object instance key-value state storage - 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.
- 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.
- toHandlerDefinition() - Method in class dev.restate.sdk.Service.Handler
V
- virtualObject(String) - Static method in class dev.restate.sdk.Service
W
- with(Service.HandlerSignature<REQ, RES>, BiFunction<Context, REQ, RES>) - Method in class dev.restate.sdk.Service.ServiceBuilder
- withExclusive(Service.HandlerSignature<REQ, RES>, BiFunction<ObjectContext, REQ, RES>) - Method in class dev.restate.sdk.Service.VirtualObjectBuilder
- withShared(Service.HandlerSignature<REQ, RES>, BiFunction<SharedObjectContext, REQ, RES>) - Method in class dev.restate.sdk.Service.VirtualObjectBuilder
All Classes All Packages