Configurator

Configurator for a HandlerDefinition.

Functions

Link copied to clipboard
@Nullable
open fun abortTimeout(): @Nullable Duration

open fun abortTimeout(@Nullable abortTimeout: @Nullable Duration): HandlerDefinition.Configurator
This timer guards against stalled invocations that are supposed to terminate.
Link copied to clipboard
@Nullable
open fun acceptContentType(): @Nullable String

open fun acceptContentType(@Nullable acceptContentType: @Nullable String): HandlerDefinition.Configurator
Set the acceptable content type when ingesting HTTP requests.
Link copied to clipboard
Link copied to clipboard
@Nullable
open fun documentation(): @Nullable String

open fun documentation(@Nullable documentation: @Nullable String): HandlerDefinition.Configurator
Documentation as shown in the UI, Admin REST API, and the generated OpenAPI documentation of this handler.
Link copied to clipboard
@Nullable
open fun enableLazyState(): @Nullable Boolean

open fun enableLazyState(@Nullable enableLazyState: @Nullable Boolean): HandlerDefinition.Configurator
When set to true, lazy state will be enabled for all invocations to this handler.
Link copied to clipboard
@Nullable
open fun idempotencyRetention(): @Nullable Duration

open fun idempotencyRetention(@Nullable idempotencyRetention: @Nullable Duration): HandlerDefinition.Configurator
The retention duration of idempotent requests to this service.
Link copied to clipboard
@Nullable
open fun inactivityTimeout(): @Nullable Duration

open fun inactivityTimeout(@Nullable inactivityTimeout: @Nullable Duration): HandlerDefinition.Configurator
This timer guards against stalled invocations.
Link copied to clipboard
@Nullable
open fun ingressPrivate(): @Nullable Boolean

open fun ingressPrivate(@Nullable ingressPrivate: @Nullable Boolean): HandlerDefinition.Configurator
When set to true this handler cannot be invoked from the restate-server HTTP and Kafka ingress, but only from other services.
Link copied to clipboard
@Nullable
open fun journalRetention(): @Nullable Duration

open fun journalRetention(@Nullable journalRetention: @Nullable Duration): HandlerDefinition.Configurator
The journal retention for invocations to this handler.
Link copied to clipboard
open fun metadata(): Map<String, String>

Handler metadata, as propagated in the Admin REST API.
Link copied to clipboard
@Nullable
open fun workflowRetention(): @Nullable Duration

open fun workflowRetention(@Nullable workflowRetention: @Nullable Duration): HandlerDefinition.Configurator
The retention duration for this workflow handler.