Uses of Interface
cloud.opencode.base.cache.spi.RetryPolicy
Packages that use RetryPolicy
-
Uses of RetryPolicy in cloud.opencode.base.cache.resilience
Methods in cloud.opencode.base.cache.resilience that return RetryPolicyModifier and TypeMethodDescriptionRetryExecutor.getPolicy()Returns the retry policy backing this executor.Methods in cloud.opencode.base.cache.resilience with parameters of type RetryPolicyModifier and TypeMethodDescriptionstatic RetryExecutorRetryExecutor.of(RetryPolicy policy) Creates a RetryExecutor backed by the given policy.ResilientCacheLoader.BatchBuilder.retry(RetryPolicy retryPolicy) Set retry policy 设置重试策略ResilientCacheLoader.Builder.retry(RetryPolicy retryPolicy) Set retry policy 设置重试策略 -
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 创建仅在特定异常时重试的策略