A B C D F G H I J K L M N O P R S T W 
All Classes All Packages

A

all(Awaitable<?>, Awaitable<?>, Awaitable<?>...) - Static method in class dev.restate.sdk.Awaitable
Create an Awaitable that awaits all the given awaitables.
all(List<Awaitable<?>>) - Static method in class dev.restate.sdk.Awaitable
Create an Awaitable that awaits all the given awaitables.
any(Awaitable<?>, Awaitable<?>, Awaitable<?>...) - Static method in class dev.restate.sdk.Awaitable
Create an Awaitable that awaits any of the given awaitables.
any(List<Awaitable<?>>) - Static method in class dev.restate.sdk.Awaitable
Create an Awaitable that 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 a TimeoutException if this Awaitable doesn't complete before the provided timeout.
awaitable() - Method in interface dev.restate.sdk.DurablePromise
 
Awaitable<T> - Class in dev.restate.sdk
An Awaitable allows 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 through Awakeable.id().
Awakeable<T> - Class in dev.restate.sdk
An Awakeable is a special type of Awaitable which can be arbitrarily completed by another service, by addressing it with its Awakeable.id().
awakeableHandle(String) - Method in interface dev.restate.sdk.Context
Create a new AwakeableHandle for the provided identifier.
AwakeableHandle - Interface in dev.restate.sdk
This class represents a handle to an Awakeable created in another service.

B

BOOLEAN - Static variable in class dev.restate.sdk.JsonSerdes
Serde for Boolean.
BYTE - Static variable in class dev.restate.sdk.JsonSerdes
Serde for Byte.

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
Serde for Double.
DurablePromise<T> - Interface in dev.restate.sdk
A DurablePromise is a durable, distributed version of a CompletableFuture.
DurablePromiseHandle<T> - Interface in dev.restate.sdk
This class represents a handle to an DurablePromise created in another handler.

F

FLOAT - Static variable in class dev.restate.sdk.JsonSerdes
Serde for Float.

G

get(StateKey<T>) - Method in interface dev.restate.sdk.SharedObjectContext
Gets the state stored under key, deserializing the raw value using the Serde in the StateKey.

H

HandlerRunner<REQ,​RES> - Class in dev.restate.sdk
Adapter class for HandlerRunner to 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
Serde for Integer.

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
Serde for Long.

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 DurablePromise for the given key.
promiseHandle(DurablePromiseKey<T>) - Method in interface dev.restate.sdk.SharedWorkflowContext
Create a new DurablePromiseHandle for 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 Random inherently predictable, seeded on the InvocationId, 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
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
send(Target, byte[], Duration) - Method in interface dev.restate.sdk.Context
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 delay has 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 Serde in the StateKey.
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
Serde for Short.
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
Serde for String.
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.
A B C D F G H I J K L M N O P R S T W 
All Classes All Packages