HandlerContext
interface HandlerContext
Internal interface to access Restate functionalities. Users can use the ad-hoc RestateContext interfaces provided by the various implementations.
Types
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
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 getInvocationOutput(invocationId: String): CompletableFuture<AsyncResult<Output<Slice>>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun rejectPromise(key: String, reason: TerminalException): CompletableFuture<AsyncResult<Void>>
Link copied to clipboard
Link copied to clipboard
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 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