Package dev.restate.sdk.client
Interface Client.AwakeableHandle
- Enclosing interface:
Client
public static interface Client.AwakeableHandle
This class represents a handle to an Awakeable. It can be used to complete awakeables from the
ingress
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Complete with failure the Awakeable.default void
reject
(String reason, RequestOptions options) Same asreject(String)
with options.default CompletableFuture
<Void> rejectAsync
(String reason) Same asreject(String)
but async.rejectAsync
(String reason, RequestOptions options) Same asreject(String)
but async with options.default <T> void
Complete with success the Awakeable.default <T> void
resolve
(Serde<T> serde, @NonNull T payload, RequestOptions options) Same asresolve(Serde, Object)
with options.default <T> CompletableFuture
<Void> resolveAsync
(Serde<T> serde, @NonNull T payload) Same asresolve(Serde, Object)
but async.<T> CompletableFuture
<Void> resolveAsync
(Serde<T> serde, @NonNull T payload, RequestOptions options) Same asresolve(Serde, Object)
but async with options.
-
Method Details
-
resolveAsync
<T> CompletableFuture<Void> resolveAsync(Serde<T> serde, @NonNull T payload, RequestOptions options) Same asresolve(Serde, Object)
but async with options. -
resolveAsync
Same asresolve(Serde, Object)
but async. -
resolve
Same asresolve(Serde, Object)
with options. -
resolve
Complete with success the Awakeable.- Parameters:
serde
- used to serialize the Awakeable result payload.payload
- the result payload. MUST NOT be null.
-
rejectAsync
Same asreject(String)
but async with options. -
rejectAsync
Same asreject(String)
but async. -
reject
Same asreject(String)
with options. -
reject
Complete with failure the Awakeable.- Parameters:
reason
- the rejection reason. MUST NOT be null.
-