Uses of Interface
cloud.opencode.base.cache.spi.RefreshAheadPolicy
Packages that use RefreshAheadPolicy
Package
Description
-
Uses of RefreshAheadPolicy in cloud.opencode.base.cache
Methods in cloud.opencode.base.cache with parameters of type RefreshAheadPolicyModifier and TypeMethodDescriptionRefreshAheadCache.Builder.refreshPolicy(RefreshAheadPolicy<K, V> policy) Set refresh policy 设置刷新策略CacheDecorators.ChainBuilder.withRefreshAhead(RefreshAheadPolicy<K, V> policy, Function<? super K, ? extends V> loader) Add refresh-ahead behavior 添加提前刷新行为 -
Uses of RefreshAheadPolicy in cloud.opencode.base.cache.config
Methods in cloud.opencode.base.cache.config that return RefreshAheadPolicyModifier and TypeMethodDescriptionCacheConfig.refreshAheadPolicy()Get refresh ahead policy 获取提前刷新策略Methods in cloud.opencode.base.cache.config with parameters of type RefreshAheadPolicyModifier and TypeMethodDescriptionCacheConfig.Builder.refreshAheadPolicy(RefreshAheadPolicy<K, V> policy) Set refresh ahead policy for proactive cache refresh 设置提前刷新策略用于主动缓存刷新 -
Uses of RefreshAheadPolicy in cloud.opencode.base.cache.spi
Methods in cloud.opencode.base.cache.spi that return RefreshAheadPolicyModifier and TypeMethodDescriptionstatic <K,V> RefreshAheadPolicy <K, V> RefreshAheadPolicy.adaptive(double minPercentage, double maxPercentage) Create a refresh policy with adaptive threshold based on load 创建基于负载的自适应阈值刷新策略default RefreshAheadPolicy<K, V> RefreshAheadPolicy.and(RefreshAheadPolicy<K, V> other) Combine with another policy using AND logic 使用 AND 逻辑与另一个策略组合static <K,V> RefreshAheadPolicy <K, V> RefreshAheadPolicy.beforeExpiration(Duration beforeExpiration) Create a policy that refreshes a fixed duration before expiration 创建在过期前固定时间刷新的策略static <K,V> RefreshAheadPolicy <K, V> RefreshAheadPolicy.custom(RefreshAheadPolicy.RefreshPredicate<K> predicate) Create a custom refresh policy 创建自定义刷新策略static <K,V> RefreshAheadPolicy <K, V> RefreshAheadPolicy.disabled()Create a disabled policy (no refresh ahead) 创建禁用的策略(不提前刷新)default RefreshAheadPolicy<K, V> RefreshAheadPolicy.or(RefreshAheadPolicy<K, V> other) Combine with another policy using OR logic 使用 OR 逻辑与另一个策略组合static <K,V> RefreshAheadPolicy <K, V> RefreshAheadPolicy.percentageOfTtl(double percentage) Create a policy that refreshes when a percentage of TTL has elapsed 创建当 TTL 过了指定百分比时刷新的策略static <K,V> RefreshAheadPolicy <K, V> RefreshAheadPolicy.withJitter(double basePercentage, double jitterPercent) Create a refresh policy with jitter to avoid thundering herd 创建带抖动的刷新策略以避免惊群效应Methods in cloud.opencode.base.cache.spi with parameters of type RefreshAheadPolicyModifier and TypeMethodDescriptiondefault RefreshAheadPolicy<K, V> RefreshAheadPolicy.and(RefreshAheadPolicy<K, V> other) Combine with another policy using AND logic 使用 AND 逻辑与另一个策略组合default RefreshAheadPolicy<K, V> RefreshAheadPolicy.or(RefreshAheadPolicy<K, V> other) Combine with another policy using OR logic 使用 OR 逻辑与另一个策略组合