Package dev.restate.sdk
Class CallDurableFuture<T>
java.lang.Object
dev.restate.sdk.DurableFuture<T>
dev.restate.sdk.CallDurableFuture<T>
DurableFuture
returned by a call to another service.
You can retrieve the call invocation id using invocationId()
, and you can cancel the
invocation using cancel()
.
-
Method Summary
Modifier and TypeMethodDescriptionprotected AsyncResult
<T> void
cancel()
Cancel this invocationprotected Executor
Methods inherited from class dev.restate.sdk.DurableFuture
all, all, any, any, await, await, map, map, mapFailure, withTimeout
-
Method Details
-
invocationId
- Returns:
- the invocation id of this call.
-
cancel
public void cancel()Cancel this invocation -
asyncResult
- Specified by:
asyncResult
in classDurableFuture<T>
-
serviceExecutor
- Specified by:
serviceExecutor
in classDurableFuture<T>
-