toggle menu
sdk-java
1.2.0
jvm
switch theme
search in API
sdk-common
/
dev.restate.sdk.common.syscalls
/
SyscallCallback
Syscall
Callback
interface
SyscallCallback
<
T
>
Inheritors
ExitSideEffectSyscallCallback
Members
Functions
completing
Future
Link copied to clipboard
open
fun
<
T
>
completingFuture
(
fut
:
CompletableFuture
<
T
>
)
:
SyscallCallback
<
T
>
mapping
To
Link copied to clipboard
open
fun
<
T
,
R
>
mappingTo
(
mapper
:
(
T
)
->
R
,
callback
:
SyscallCallback
<
R
>
)
:
SyscallCallback
<
T
>
of
Link copied to clipboard
open
fun
<
T
>
of
(
onSuccess
:
Consumer
<
T
>
,
onFailure
:
Consumer
<
Throwable
>
)
:
SyscallCallback
<
T
>
of
Void
Link copied to clipboard
open
fun
ofVoid
(
onSuccess
:
Runnable
,
onFailure
:
Consumer
<
Throwable
>
)
:
SyscallCallback
<
Void
>
on
Cancel
Link copied to clipboard
abstract
fun
onCancel
(
t
:
Throwable
)
The internal state machine invokes this method when a syscall is interrupted due to a suspension, or a network error.
on
Success
Link copied to clipboard
abstract
fun
onSuccess
(
@
Nullable
value
:
@
Nullable
T
)