Uses of Interface
cloud.opencode.base.cache.spi.RetryPolicy
Packages that use RetryPolicy
-
Uses of RetryPolicy in cloud.opencode.base.cache.spi
Classes in cloud.opencode.base.cache.spi that implement RetryPolicyModifier and TypeClassDescriptionstatic final classCustom retry policy implementation - wraps a delegate with custom exception filter 自定义重试策略实现 - 用自定义异常过滤器包装委托static final classExponential backoff implementationstatic final classFixed delay implementationstatic final classNo retry implementationMethods in cloud.opencode.base.cache.spi that return RetryPolicyModifier and TypeMethodDescriptionstatic RetryPolicyRetryPolicy.exponentialBackoff(int maxRetries, Duration initialDelay, Duration maxDelay) Exponential backoff retry policy 指数退避重试策略static RetryPolicyRetryPolicy.exponentialBackoffWithJitter(int maxRetries, Duration initialDelay, Duration maxDelay) Exponential backoff with jitter 带抖动的指数退避static RetryPolicyRetryPolicy.fixedDelay(int maxRetries, Duration delay) Fixed delay retry policy 固定延迟重试策略static RetryPolicyRetryPolicy.noRetry()No retry policy 不重试策略default RetryPolicyCreate a policy that only retries on specific exceptions 创建仅在特定异常时重试的策略