NodeConfig

data class NodeConfig(val retryConfig: RetryConfig? = null, val timeout: Duration? = null)

Bundles a node's retry policy and execution timeout. A null timeout imposes no limit, so an attempt is then bounded only by any ambient deadline. Validation lives here, so every Node implementation inherits it.

Constructors

Link copied to clipboard
constructor(retryConfig: RetryConfig? = null, timeout: Duration? = null)

Types

Link copied to clipboard
class Builder

Fluent builder for NodeConfig, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

How the node is retried when it raises. Null does not retry.

Link copied to clipboard

How long an attempt may run before it is cancelled and treated as a failure. Must be positive; null imposes no limit.

Functions

Link copied to clipboard

Returns timeout in whole milliseconds, or null. Java cannot read timeout (mangled).

Link copied to clipboard

Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.