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> voidcancel()Cancel this invocationprotected ExecutorMethods 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:
asyncResultin classDurableFuture<T>
-
serviceExecutor
- Specified by:
serviceExecutorin classDurableFuture<T>
-