Uses of Interface
cloud.opencode.base.core.retry.BackoffStrategy
Packages that use BackoffStrategy
Package
Description
Retry utilities with configurable backoff strategies.
-
Uses of BackoffStrategy in cloud.opencode.base.core.retry
Classes in cloud.opencode.base.core.retry that implement BackoffStrategyModifier and TypeClassDescriptionstatic final recordExponential backoff - delay grows by a multiplier each attempt.static final recordExponential backoff with jitter - adds randomness to prevent thundering herd.static final recordFibonacci backoff - delay follows the Fibonacci sequence.static final recordFixed backoff - returns the same delay for every attempt.Methods in cloud.opencode.base.core.retry that return BackoffStrategyModifier and TypeMethodDescriptionRetryConfig.backoff()Returns the value of thebackoffrecord component.static BackoffStrategyBackoffStrategy.exponential(Duration initialDelay, double multiplier) Create an exponential backoff strategy.static BackoffStrategyBackoffStrategy.exponentialWithJitter(Duration initialDelay, double multiplier, double jitterFactor) Create an exponential backoff strategy with jitter.static BackoffStrategyCreate a Fibonacci backoff strategy.static BackoffStrategyCreate a fixed backoff strategy.Methods in cloud.opencode.base.core.retry with parameters of type BackoffStrategyModifier and TypeMethodDescriptionRetry.backoff(BackoffStrategy backoff) Set the backoff strategy.Constructors in cloud.opencode.base.core.retry with parameters of type BackoffStrategyModifierConstructorDescriptionRetryConfig(int maxAttempts, BackoffStrategy backoff, @Nullable Duration maxDelay, @Nullable Duration timeout, Predicate<Throwable> retryOn, Predicate<Throwable> abortOn, Predicate<Object> retryOnResult, BiConsumer<Integer, Throwable> onRetry, Consumer<Object> onSuccess, Consumer<Throwable> onExhausted) Creates an instance of aRetryConfigrecord class.RetryConfig(int maxAttempts, BackoffStrategy backoff, @Nullable Duration maxDelay, Predicate<Throwable> retryOn, Predicate<Throwable> abortOn, BiConsumer<Integer, Throwable> onRetry) Backward-compatible constructor without timeout, retryOnResult, onSuccess, onExhausted.