Index
All Classes and Interfaces|All Packages|Serialized Form
A
- all(DurableFuture<?>, DurableFuture<?>, DurableFuture<?>...) - Static method in class dev.restate.sdk.DurableFuture
-
Create an
DurableFuturethat awaits all the given futures. - all(List<DurableFuture<?>>) - Static method in class dev.restate.sdk.DurableFuture
-
Create an
DurableFuturethat awaits all the given futures. - any(DurableFuture<?>, DurableFuture<?>, DurableFuture<?>...) - Static method in class dev.restate.sdk.DurableFuture
-
Create an
DurableFuturethat awaits any of the given futures. - any(List<DurableFuture<?>>) - Static method in class dev.restate.sdk.DurableFuture
-
Create an
DurableFuturethat 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
DurableFutureto complete. - await(Duration) - Method in class dev.restate.sdk.DurableFuture
-
Same as
DurableFuture.await(), but throws aTimeoutExceptionif thisDurableFuturedoesn't complete before the providedtimeout. - 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 throughAwakeable.id(). - awakeable(Class<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 ofDurableFuturewhich 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
-
Deprecated, for removal: This API element is subject to removal in a future version.
- BYTE - Static variable in class dev.restate.sdk.JsonSerdes
-
Deprecated, for removal: This API element is subject to removal in a future version.
C
- call(Request<T, R>) - Method in interface dev.restate.sdk.Context
-
Invoke another Restate service method.
- CallDurableFuture<T> - Class in dev.restate.sdk
-
DurableFuturereturned 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 theHandlerRunnerinstances. - 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.
- DurableFuture<T> - Class in dev.restate.sdk
-
A
DurableFutureallows to await an asynchronous result. - DurableFuture() - Constructor for class dev.restate.sdk.DurableFuture
- 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
-
Deprecated, for removal: This API element is subject to removal in a future version.
- 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
Serdein theStateKey. - getOutput() - Method in interface dev.restate.sdk.InvocationHandle
H
- HandlerRunner<REQ,
RES> - Class in dev.restate.sdk -
Adapter class for
HandlerRunnerto use the Java API. - HandlerRunner.Options - Class in dev.restate.sdk
-
HandlerRunneroptions.
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.
- 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
InvocationHandlefor 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.
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.
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
DurableFutureto 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
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
-
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
Randominherently predictable, seeded on theInvocationId, which is not secret. - run(ThrowingRunnable) - Method in interface dev.restate.sdk.Context
-
Like
Context.run(Class, ThrowingSupplier)without output. - 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
-
Like
Context.run(String, TypeTag, ThrowingSupplier), without a name - run(Class<T>, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
-
Like
Context.run(String, Class, ThrowingSupplier), without a name - run(String, ThrowingRunnable) - Method in interface dev.restate.sdk.Context
-
Like
Context.run(String, Class, ThrowingSupplier)without output. - 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 aTypeTag. - 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
-
Like
Context.runAsync(String, Class, ThrowingSupplier)without output. - runAsync(TypeTag<T>, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
-
Like
Context.runAsync(String, TypeTag, ThrowingSupplier), without a name - runAsync(Class<T>, ThrowingSupplier<T>) - Method in interface dev.restate.sdk.Context
-
Like
Context.runAsync(String, Class, ThrowingSupplier), without a name - runAsync(String, ThrowingRunnable) - Method in interface dev.restate.sdk.Context
-
Like
Context.runAsync(String, Class, ThrowingSupplier)without output. - 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
-
Like
Context.runAsync(String, Class, ThrowingSupplier), but providing aTypeTag. - 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
Selectoperation. - 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
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
-
Deprecated, for removal: This API element is subject to removal in a future version.
- 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.
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
DurableFutureto this select. - when(DurableFuture<U>, ThrowingFunction<U, T>, ThrowingFunction<TerminalException, T>) - Method in class dev.restate.sdk.Select
-
Add the given
DurableFutureto 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.
All Classes and Interfaces|All Packages|Serialized Form
DurablePromise.future()instead.