Syscalls
interface Syscalls
Internal interface to access Restate functionalities. Users can use the ad-hoc RestateContext interfaces provided by the various implementations.
When using executor switching wrappers, the method's callback
will be executed in the state machine executor.
Functions
Link copied to clipboard
Link copied to clipboard
abstract fun call(target: Target, parameter: ByteBuffer, callback: SyscallCallback<Deferred<ByteBuffer>>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun enterSideEffectBlock(@Nullable name: @Nullable String, callback: EnterSideEffectSyscallCallback)
Link copied to clipboard
Link copied to clipboard
abstract fun exitSideEffectBlockWithException(toWrite: Throwable, @Nullable retryPolicy: @Nullable RetryPolicy, callback: ExitSideEffectSyscallCallback)
Link copied to clipboard
abstract fun exitSideEffectBlockWithTerminalException(toWrite: TerminalException, callback: ExitSideEffectSyscallCallback)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun resolveAwakeable(id: String, payload: ByteBuffer, requestCallback: SyscallCallback<Void>)
Link copied to clipboard
Link copied to clipboard
abstract fun resolvePromise(key: String, payload: ByteBuffer, callback: SyscallCallback<Deferred<Void>>)
Link copied to clipboard
abstract fun send(target: Target, parameter: ByteBuffer, @Nullable delay: @Nullable Duration, requestCallback: SyscallCallback<Void>)
Link copied to clipboard
Link copied to clipboard