Package cloud.opencode.base.core.retry
@NullMarked
package cloud.opencode.base.core.retry
Retry utilities with configurable backoff strategies.
重试工具,支持可配置的退避策略。
Provides a general-purpose retry utility (Retry)
with configurable backoff strategies (BackoffStrategy)
including fixed, exponential, exponential with jitter, and Fibonacci.
- Since:
- JDK 25, opencode-base-core V1.0.3
-
ClassDescriptionBackoffStrategy - Defines delay calculation between retry attempts 退避策略 - 定义重试之间的延迟计算方式Exponential backoff - delay grows by a multiplier each attempt.Exponential backoff with jitter - adds randomness to prevent thundering herd.Fibonacci backoff - delay follows the Fibonacci sequence.Fixed backoff - returns the same delay for every attempt.Retry<T>Retry - General purpose retry utility with configurable backoff strategies 重试工具 - 通用重试工具,支持可配置的退避策略RetryConfig - Immutable retry configuration record 重试配置 - 不可变的重试配置记录