AwakeableHandle

interface AwakeableHandle

This class represents a handle to an Awakeable. It can be used to complete awakeables from the ingress

Functions

Link copied to clipboard
open fun reject(reason: String)
Complete with failure the Awakeable.
open fun reject(reason: String, options: RequestOptions)
Same as reject with options.
Link copied to clipboard
Same as reject but async.
abstract fun rejectAsync(reason: String, options: RequestOptions): CompletableFuture<Void>
Same as reject but async with options.
Link copied to clipboard
open fun <T> resolve(serde: Serde<T>, @NonNull payload: @NonNull T)
Complete with success the Awakeable.
open fun <T> resolve(serde: Serde<T>, @NonNull payload: @NonNull T, options: RequestOptions)
Same as resolve with options.
Link copied to clipboard
open fun <T> resolveAsync(serde: Serde<T>, @NonNull payload: @NonNull T): CompletableFuture<Void>
Same as resolve but async.
abstract fun <T> resolveAsync(serde: Serde<T>, @NonNull payload: @NonNull T, options: RequestOptions): CompletableFuture<Void>
Same as resolve but async with options.