Package dev.restate.sdk.common.syscalls
Interface SyscallCallback<T>
- All Known Subinterfaces:
EnterSideEffectSyscallCallback
,ExitSideEffectSyscallCallback
public interface SyscallCallback<T>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> SyscallCallback
<T> completingFuture
(CompletableFuture<T> fut) static <T,
R> SyscallCallback <T> mappingTo
(Function<T, R> mapper, SyscallCallback<R> callback) static <T> SyscallCallback
<T> static SyscallCallback
<Void> void
The internal state machine invokes this method when a syscall is interrupted due to a suspension, or a network error.void
-
Method Details
-
onSuccess
-
onCancel
The internal state machine invokes this method when a syscall is interrupted due to a suspension, or a network error.In case the user code is blocked on a lock, the implementation of this method should unblock it.
-
of
-
ofVoid
-
mappingTo
-
completingFuture
-