Index

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

A

all(DurableFuture<?>, DurableFuture<?>, DurableFuture<?>...) - Static method in class dev.restate.sdk.DurableFuture
Create an DurableFuture that awaits all the given futures.
all(List<DurableFuture<?>>) - Static method in class dev.restate.sdk.DurableFuture
Create an DurableFuture that awaits all the given futures.
any(DurableFuture<?>, DurableFuture<?>, DurableFuture<?>...) - Static method in class dev.restate.sdk.DurableFuture
Create an DurableFuture that awaits any of the given futures.
any(List<DurableFuture<?>>) - Static method in class dev.restate.sdk.DurableFuture
Create an DurableFuture that awaits any of the given futures.
asyncResult() - Method in class dev.restate.sdk.Awakeable
 
asyncResult() - Method in class dev.restate.sdk.CallDurableFuture
 
asyncResult() - Method in class dev.restate.sdk.DurableFuture
 
asyncResult() - Method in class dev.restate.sdk.Select
 
attach() - Method in interface dev.restate.sdk.InvocationHandle
Attach to this invocation.
await() - Method in class dev.restate.sdk.DurableFuture
Wait for this DurableFuture to complete.
await(Duration) - Method in class dev.restate.sdk.DurableFuture
Same as DurableFuture.await(), but throws a TimeoutException if this DurableFuture doesn't complete before the provided timeout.
awaitable() - Method in interface dev.restate.sdk.DurablePromise
Deprecated, for removal: This API element is subject to removal in a future version.
awakeable(TypeTag<T>) - Method in interface dev.restate.sdk.Context
Create an Awakeable, addressable through Awakeable.id().
awakeable(Class<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 DurableFuture 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
Deprecated, for removal: This API element is subject to removal in a future version.
For primitive types, simply use the overloads of the Context/StateKey/DurablePromiseKey methods accepting Class, for example ctx.run(String.class, myClosure) or ctx.awakeable(Integer.TYPE) or StateKey.of("key", String.class)
BYTE - Static variable in class dev.restate.sdk.JsonSerdes
Deprecated, for removal: This API element is subject to removal in a future version.
For primitive types, simply use the overloads of the Context/StateKey/DurablePromiseKey methods accepting Class, for example ctx.run(String.class, myClosure) or ctx.awakeable(Integer.TYPE) or StateKey.of("key", String.class)

C

call(Request<T, R>) - Method in interface dev.restate.sdk.Context
Invoke another Restate service method.
CallDurableFuture<T> - Class in dev.restate.sdk
DurableFuture returned by a call to another service.
cancel() - Method in class dev.restate.sdk.CallDurableFuture
Cancel this invocation
cancel() - Method in interface dev.restate.sdk.InvocationHandle
Cancel this invocation.
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
Default options will use a Executors.newCachedThreadPool() shared among all the HandlerRunner instances.
dev.restate.sdk - package dev.restate.sdk
 
DOUBLE - Static variable in class dev.restate.sdk.JsonSerdes
Deprecated, for removal: This API element is subject to removal in a future version.
For primitive types, simply use the overloads of the Context/StateKey/DurablePromiseKey methods accepting Class, for example ctx.run(String.class, myClosure) or ctx.awakeable(Integer.TYPE) or StateKey.of("key", String.class)
DurableFuture<T> - Class in dev.restate.sdk
A DurableFuture allows to await an asynchronous result.
DurableFuture() - Constructor for class dev.restate.sdk.DurableFuture
 
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
Deprecated, for removal: This API element is subject to removal in a future version.
For primitive types, simply use the overloads of the Context/StateKey/DurablePromiseKey methods accepting Class, for example ctx.run(String.class, myClosure) or ctx.awakeable(Integer.TYPE) or StateKey.of("key", String.class)
future() - Method in interface dev.restate.sdk.DurablePromise
 

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.
getOutput() - Method in interface dev.restate.sdk.InvocationHandle
 

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
HandlerRunner options.

I

id() - Method in class dev.restate.sdk.Awakeable
 
INT - Static variable in class dev.restate.sdk.JsonSerdes
Deprecated, for removal: This API element is subject to removal in a future version.
For primitive types, simply use the overloads of the Context/StateKey/DurablePromiseKey methods accepting Class, for example ctx.run(String.class, myClosure) or ctx.awakeable(Integer.TYPE) or StateKey.of("key", String.class)
invocationHandle(String) - Method in interface dev.restate.sdk.Context
Like Context.invocationHandle(String, Class), without providing a response parser
invocationHandle(String, TypeTag<R>) - Method in interface dev.restate.sdk.Context
invocationHandle(String, Class<R>) - Method in interface dev.restate.sdk.Context
Get an InvocationHandle for an already existing invocation.
InvocationHandle<Res> - Interface in dev.restate.sdk
Handle to interact with an invocation.
invocationId() - Method in class dev.restate.sdk.CallDurableFuture
 
invocationId() - Method in interface dev.restate.sdk.InvocationHandle
 

J

JsonSerdes - Class in dev.restate.sdk
Deprecated, for removal: This API element is subject to removal in a future version.
For primitive types, simply use the overloads of the Context/StateKey/DurablePromiseKey methods accepting Class, for example ctx.run(String.class, myClosure) or ctx.awakeable(Integer.TYPE) or StateKey.of("key", String.class)

K

key() - Method in interface dev.restate.sdk.SharedObjectContext
 

L

LONG - Static variable in class dev.restate.sdk.JsonSerdes
Deprecated, for removal: This API element is subject to removal in a future version.
For primitive types, simply use the overloads of the Context/StateKey/DurablePromiseKey methods accepting Class, for example ctx.run(String.class, myClosure) or ctx.awakeable(Integer.TYPE) or StateKey.of("key", String.class)

M

map(ThrowingFunction<T, U>) - Method in class dev.restate.sdk.DurableFuture
Map the success result of this DurableFuture.
map(ThrowingFunction<T, U>, ThrowingFunction<TerminalException, U>) - Method in class dev.restate.sdk.DurableFuture
Map both the success and the failure result of this DurableFuture.
mapFailure(ThrowingFunction<TerminalException, T>) - Method in class dev.restate.sdk.DurableFuture
Map the failure result of this DurableFuture.

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(ThrowingBiConsumer<CTX, REQ>, SerdeFactory, HandlerRunner.Options) - Static method in class dev.restate.sdk.HandlerRunner
Factory method for HandlerRunner, used by codegen
of(ThrowingBiFunction<CTX, REQ, RES>, SerdeFactory, HandlerRunner.Options) - Static method in class dev.restate.sdk.HandlerRunner
Factory method for HandlerRunner, used by codegen
of(ThrowingConsumer<CTX>, SerdeFactory, HandlerRunner.Options) - Static method in class dev.restate.sdk.HandlerRunner
Factory method for HandlerRunner, used by codegen
of(ThrowingFunction<CTX, RES>, SerdeFactory, HandlerRunner.Options) - Static method in class dev.restate.sdk.HandlerRunner
Factory method for HandlerRunner, used by codegen
or(DurableFuture<T>) - Method in class dev.restate.sdk.Select
Add the given DurableFuture to this select.

P

peek() - Method in interface dev.restate.sdk.DurablePromise
 
PreviewContext - Class in dev.restate.sdk
Preview of new context features.
PreviewContext() - Constructor for class dev.restate.sdk.PreviewContext
 
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
Returns a deterministic random.
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(TypeTag<T>, T) - Method in interface dev.restate.sdk.AwakeableHandle
Complete with success the Awakeable.
resolve(Class<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
run(HandlerContext, Serde<REQ>, Serde<RES>, AtomicReference<Runnable>) - Method in class dev.restate.sdk.HandlerRunner
 
run(TypeTag<T>, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
run(Class<T>, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
run(String, ThrowingRunnable) - Method in interface dev.restate.sdk.Context
run(String, RetryPolicy, ThrowingRunnable) - Method in interface dev.restate.sdk.Context
Like Context.run(String, ThrowingRunnable), but without a return value and using a custom retry policy.
run(String, TypeTag<T>, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
Like Context.run(String, Class, ThrowingSupplier), but providing a TypeTag.
run(String, TypeTag<T>, RetryPolicy, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
Like Context.run(String, TypeTag, ThrowingSupplier), but using a custom retry policy.
run(String, Class<T>, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
Execute a closure, recording the result value in the journal.
run(String, Class<T>, RetryPolicy, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
Like Context.run(String, Class, ThrowingSupplier), but using a custom retry policy.
runAsync(ThrowingRunnable) - Method in interface dev.restate.sdk.Context
runAsync(TypeTag<T>, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
runAsync(Class<T>, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
runAsync(String, ThrowingRunnable) - Method in interface dev.restate.sdk.Context
runAsync(String, RetryPolicy, ThrowingRunnable) - Method in interface dev.restate.sdk.Context
Like Context.runAsync(String, Class, ThrowingSupplier), but without an output and using a custom retry policy.
runAsync(String, TypeTag<T>, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
runAsync(String, TypeTag<T>, RetryPolicy, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
Like Context.runAsync(String, TypeTag, ThrowingSupplier), but using a custom retry policy.
runAsync(String, Class<T>, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
Execute a closure asynchronously.
runAsync(String, Class<T>, RetryPolicy, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
Like Context.runAsync(String, Class, ThrowingSupplier), but using a custom retry policy.

S

select() - Static method in class dev.restate.sdk.Select
Create a new Select operation.
Select<T> - Class in dev.restate.sdk
Select lets you await concurrently for multiple DurableFutures to complete, and for the first one to complete, either return its value directly or map it.
send(Request<T, R>) - Method in interface dev.restate.sdk.Context
Invoke another Restate service without waiting for the response.
send(Request<T, R>, Duration) - Method in interface dev.restate.sdk.Context
Invoke another Restate service without waiting for the response.
serviceExecutor() - Method in class dev.restate.sdk.Awakeable
 
serviceExecutor() - Method in class dev.restate.sdk.CallDurableFuture
 
serviceExecutor() - Method in class dev.restate.sdk.DurableFuture
 
serviceExecutor() - Method in class dev.restate.sdk.Select
 
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
Deprecated, for removal: This API element is subject to removal in a future version.
For primitive types, simply use the overloads of the Context/StateKey/DurablePromiseKey methods accepting Class, for example ctx.run(String.class, myClosure) or ctx.awakeable(Integer.TYPE) or StateKey.of("key", String.class)
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
Deprecated, for removal: This API element is subject to removal in a future version.
For primitive types, simply use the overloads of the Context/StateKey/DurablePromiseKey methods accepting Class, for example ctx.run(String.class, myClosure) or ctx.awakeable(Integer.TYPE) or StateKey.of("key", String.class)

T

timer(String, Duration) - Method in interface dev.restate.sdk.Context
Causes the start of a timer for the given duration.
timer(Duration) - Method in interface dev.restate.sdk.Context
Causes the start of a timer for the given duration.

W

when(DurableFuture<U>, ThrowingFunction<U, T>) - Method in class dev.restate.sdk.Select
Add the given DurableFuture to this select.
when(DurableFuture<U>, ThrowingFunction<U, T>, ThrowingFunction<TerminalException, T>) - Method in class dev.restate.sdk.Select
Add the given DurableFuture to this select.
withExecutor(Executor) - Static method in class dev.restate.sdk.HandlerRunner.Options
Copy this options setting the given executor.
withTimeout(Duration) - Method in class dev.restate.sdk.DurableFuture
 
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 and Interfaces|All Packages|Serialized Form