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): Response<Void>
Complete with failure the Awakeable.
open fun reject(reason: String, options: RequestOptions): Response<Void>
Same as reject with options.
Link copied to clipboard
Same as reject but async.
abstract fun rejectAsync(reason: String, options: RequestOptions): CompletableFuture<Response<Void>>
Same as reject but async with options.
Link copied to clipboard
open fun <T> resolve(serde: TypeTag<T>, @NonNull payload: @NonNull T): Response<Void>
open fun <T> resolve(clazz: Class<T>, @NonNull payload: @NonNull T): Response<Void>
Complete with success the Awakeable.
open fun <T> resolve(serde: TypeTag<T>, @NonNull payload: @NonNull T, options: RequestOptions): Response<Void>
open fun <T> resolve(clazz: Class<T>, @NonNull payload: @NonNull T, options: RequestOptions): Response<Void>
Same as resolve with options.
Link copied to clipboard
open fun <T> resolveAsync(serde: TypeTag<T>, @NonNull payload: @NonNull T): CompletableFuture<Response<Void>>
open fun <T> resolveAsync(clazz: Class<T>, @NonNull payload: @NonNull T): CompletableFuture<Response<Void>>
Same as resolve but async.
abstract fun <T> resolveAsync(serde: TypeTag<T>, @NonNull payload: @NonNull T, options: RequestOptions): CompletableFuture<Response<Void>>
open fun <T> resolveAsync(clazz: Class<T>, @NonNull payload: @NonNull T, options: RequestOptions): CompletableFuture<Response<Void>>
Same as resolve but async with options.