RestateComponentsProperties

@ConfigurationProperties(prefix = "restate")
open class RestateComponentsProperties

Properties for configuring Restate services.

Top-level fields (e.g. restate.inactivity-timeout) act as defaults applied to all services. Per-service configuration in getComponents takes precedence over these defaults.

Example configuration in application.properties:


# Default configuration applied to all services
restate.executor=myGlobalExecutor
restate.inactivity-timeout=10m
restate.retry-policy.max-attempts=5

# Per-service configuration (overrides defaults)
restate.components.MyService.executor=myServiceExecutor
restate.components.MyService.inactivity-timeout=5m
restate.components.MyService.abort-timeout=1m
restate.components.MyService.idempotency-retention=1d
restate.components.MyService.journal-retention=7d
restate.components.MyService.ingress-private=false
restate.components.MyService.enable-lazy-state=true
restate.components.MyService.documentation=My service description
restate.components.MyService.metadata.version=1.0
restate.components.MyService.metadata.team=platform
restate.components.MyService.retry-policy.initial-interval=100ms
restate.components.MyService.retry-policy.exponentiation-factor=2.0
restate.components.MyService.retry-policy.max-interval=10s
restate.components.MyService.retry-policy.max-attempts=10
restate.components.MyService.retry-policy.on-max-attempts=PAUSE

# Per-handler configuration
restate.components.MyService.handlers.myHandler.inactivity-timeout=5m
restate.components.MyService.handlers.myHandler.ingress-private=true
restate.components.MyService.handlers.myHandler.documentation=Handler description
restate.components.MyService.handlers.myWorkflowHandler.workflow-retention=30d

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
@Nullable
@get:Nullable
open var abortTimeout: @Nullable Duration
Link copied to clipboard
Link copied to clipboard
@Nullable
@get:Nullable
open var documentation: @Nullable String
Link copied to clipboard
@Nullable
@get:Nullable
open var enableLazyState: @Nullable Boolean
Link copied to clipboard
@Nullable
@get:Nullable
open var executor: @Nullable String
Link copied to clipboard
@Nullable
@get:Nullable
open var idempotencyRetention: @Nullable Duration
Link copied to clipboard
@Nullable
@get:Nullable
open var inactivityTimeout: @Nullable Duration
Link copied to clipboard
@Nullable
@get:Nullable
open var ingressPrivate: @Nullable Boolean
Link copied to clipboard
@Nullable
@get:Nullable
open var journalRetention: @Nullable Duration
Link copied to clipboard
@Nullable
@get:Nullable
open var metadata: @Nullable Map<String, String>
Link copied to clipboard
@Nullable
@get:Nullable
open var retryPolicy: @Nullable RetryPolicyProperties
Link copied to clipboard
@Nullable
@get:Nullable
open var workflowRetention: @Nullable Duration