toggle menu
sdk-java
1.2.0
jvm
switch theme
search in API
sdk-common
/
dev.restate.sdk.common.syscalls
/
EnterSideEffectSyscallCallback
Enter
Side
Effect
Syscall
Callback
interface
EnterSideEffectSyscallCallback
:
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
Failure
Link copied to clipboard
abstract
fun
onFailure
(
t
:
TerminalException
)
This is user failure.
on
Not
Executed
Link copied to clipboard
abstract
fun
onNotExecuted
(
)
on
Success
Link copied to clipboard
abstract
fun
onSuccess
(
@
Nullable
value
:
@
Nullable
T
)