StateMachine

More or less same as the VM trait

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class Input : Record

Functions

Link copied to clipboard
abstract fun attachInvocation(invocationId: String): Int
Link copied to clipboard
Link copied to clipboard
abstract fun call(target: Target, payload: Slice, @Nullable idempotencyKey: @Nullable String, @Nullable headers: @Nullable Collection<Map.Entry<String, String>>): StateMachine.CallHandle
Link copied to clipboard
abstract fun cancelInvocation(targetInvocationId: String)
Link copied to clipboard
abstract fun completeAwakeable(awakeableId: String, value: Slice)
abstract fun completeAwakeable(awakeableId: String, exception: TerminalException)
Link copied to clipboard
abstract fun completeSignal(targetInvocationId: String, signalName: String, value: Slice)
abstract fun completeSignal(targetInvocationId: String, signalName: String, exception: TerminalException)
Link copied to clipboard
abstract fun createSignalHandle(signalName: String): Int
Link copied to clipboard
Link copied to clipboard
abstract fun end()
Link copied to clipboard
abstract fun getInvocationOutput(invocationId: String): Int
Link copied to clipboard
Link copied to clipboard
open fun init(headersAccessor: HeadersAccessor, loggingContextSetter: EndpointRequestHandler.LoggingContextSetter): StateMachine
Link copied to clipboard
@Nullable
abstract fun input(): @Nullable StateMachine.Input
Link copied to clipboard
abstract fun isCompleted(handle: Int): Boolean
Link copied to clipboard
abstract fun onComplete()
Link copied to clipboard
abstract fun onError(p: Throwable)
Link copied to clipboard
abstract fun onNext(p: T)
Link copied to clipboard
Link copied to clipboard
abstract fun promiseComplete(key: String, value: Slice): Int
abstract fun promiseComplete(key: String, exception: TerminalException): Int
Link copied to clipboard
abstract fun promiseGet(key: String): Int
Link copied to clipboard
abstract fun promisePeek(key: String): Int
Link copied to clipboard
abstract fun proposeRunCompletion(handle: Int, value: Slice)
abstract fun proposeRunCompletion(handle: Int, exception: Throwable, attemptDuration: Duration, retryPolicy: RetryPolicy)
Link copied to clipboard
abstract fun run(name: String): Int
Link copied to clipboard
abstract fun send(target: Target, payload: Slice, @Nullable idempotencyKey: @Nullable String, @Nullable headers: @Nullable Collection<Map.Entry<String, String>>, @Nullable delay: @Nullable Duration): Int
Link copied to clipboard
abstract fun sleep(duration: Duration, name: String): Int
Link copied to clipboard
abstract fun state(): InvocationState
Link copied to clipboard
abstract fun stateClear(key: String)
Link copied to clipboard
abstract fun stateClearAll()
Link copied to clipboard
abstract fun stateGet(key: String): Int
Link copied to clipboard
abstract fun stateGetKeys(): Int
Link copied to clipboard
abstract fun stateSet(key: String, bytes: Slice)
Link copied to clipboard
abstract fun subscribe(p: Flow.Subscriber<in T>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun writeOutput(value: Slice)
abstract fun writeOutput(exception: TerminalException)