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)

类型

Link copied to clipboard
class Builder

Fluent Builder for NodeConfig该功能主要为 Java 语言的调用者提供支持;如果某个属性未被设置,其值将默认使用构造函数中指定的默认值。

Link copied to clipboard
object Companion

属性(Properties)

Link copied to clipboard

当节点出现错误时,系统会如何尝试重新执行该节点的代码?如果返回值为 `null`,则表示不会尝试重新执行。

Link copied to clipboard

一次尝试可以运行多长时间,之后才会被取消并被视为失败?这个时间值必须是正数;如果设置为 `null`,则表示没有时间限制。

函数

Link copied to clipboard

返回值 超时(timeout) 以毫秒为单位计算(即整个过程耗时多少毫秒)。 nullJava 无法读取该文件。 超时(timeout) (已被损坏/篡改的文件)。

Link copied to clipboard

返回一个 Builder 使用该实例的属性进行初始化,主要适用于 Java 调用者。建议优先选择这种方式。 copy 来自 Java 的代码: copy 该函数会按位置获取所有属性的值;因此,每当有新属性被添加时,其函数签名(即函数的定义)就会发生变化。