Package dev.restate.sdk.client
Interface IngressClient.AwakeableHandle
-
- Enclosing interface:
- IngressClient
public static interface IngressClient.AwakeableHandleThis class represents a handle to an Awakeable. It can be used to complete awakeables from the ingress
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidreject(java.lang.String reason)Complete with failure the Awakeable.java.util.concurrent.CompletableFuture<java.lang.Void>rejectAsync(java.lang.String reason)Same asreject(String)but async.default <T> voidresolve(Serde<T> serde, @NonNull T payload)Complete with success the Awakeable.<T> java.util.concurrent.CompletableFuture<java.lang.Void>resolveAsync(Serde<T> serde, @NonNull T payload)Same asresolve(Serde, Object)but async.
-
-
-
Method Detail
-
resolveAsync
<T> java.util.concurrent.CompletableFuture<java.lang.Void> resolveAsync(Serde<T> serde, @NonNull T payload)
Same asresolve(Serde, Object)but async.
-
resolve
default <T> void resolve(Serde<T> serde, @NonNull T payload)
Complete with success the Awakeable.- Parameters:
serde- used to serialize the Awakeable result payload.payload- the result payload. MUST NOT be null.
-
rejectAsync
java.util.concurrent.CompletableFuture<java.lang.Void> rejectAsync(java.lang.String reason)
Same asreject(String)but async.
-
reject
default void reject(java.lang.String reason)
Complete with failure the Awakeable.- Parameters:
reason- the rejection reason. MUST NOT be null.
-
-