HandlerContext

interface HandlerContext

Internal interface to access Restate functionalities. Users can use the ad-hoc RestateContext interfaces provided by the various implementations.

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface RunCompleter

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun call(target: Target, parameter: Slice, @Nullable idempotencyKey: @Nullable String, @Nullable headers: @Nullable Collection<Map.Entry<String, String>>): CompletableFuture<HandlerContext.CallResult>
Link copied to clipboard
abstract fun cancelInvocation(invocationId: String): CompletableFuture<Void>
Link copied to clipboard
abstract fun clear(name: String): CompletableFuture<Void>
Link copied to clipboard
Link copied to clipboard
abstract fun createAllAsyncResult(children: List<AsyncResult<out Any>>): AsyncResult<Void>
Link copied to clipboard
Link copied to clipboard
abstract fun fail(cause: Throwable)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun objectKey(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun request(): HandlerRequest
Link copied to clipboard
abstract fun resolveAwakeable(id: String, payload: Slice): CompletableFuture<Void>
Link copied to clipboard
Link copied to clipboard
abstract fun send(target: Target, parameter: Slice, @Nullable idempotencyKey: @Nullable String, @Nullable headers: @Nullable Collection<Map.Entry<String, String>>, @Nullable delay: @Nullable Duration): CompletableFuture<AsyncResult<String>>
Link copied to clipboard
abstract fun set(name: String, value: Slice): CompletableFuture<Void>
Link copied to clipboard
abstract fun submitRun(@Nullable name: @Nullable String, closure: Consumer<HandlerContext.RunCompleter>): CompletableFuture<AsyncResult<Slice>>
Link copied to clipboard
abstract fun timer(duration: Duration, @Nullable name: @Nullable String): CompletableFuture<AsyncResult<Void>>
Link copied to clipboard