Class ResilientCacheLoader.BatchBuilder<K,V>
java.lang.Object
cloud.opencode.base.cache.resilience.ResilientCacheLoader.BatchBuilder<K,V>
- Type Parameters:
K- the key type | 键类型V- the value type | 值类型
- Enclosing class:
ResilientCacheLoader<K,V>
Builder for batch resilient loader
- Since:
- JDK 25, opencode-base-cache V1.9.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the resilient batch loader 构建弹性批量加载器Set bulkhead 设置舱壁circuitBreaker(CircuitBreaker circuitBreaker) Set circuit breaker 设置熔断器Set the batch loader function 设置批量加载函数retry(RetryPolicy retryPolicy) Set retry policy 设置重试策略Set operation timeout 设置操作超时
-
Constructor Details
-
BatchBuilder
public BatchBuilder()Creates a new BatchBuilder instance | 创建新的 BatchBuilder 实例
-
-
Method Details
-
loader
-
retry
Set retry policy 设置重试策略- Parameters:
retryPolicy- the retryPolicy | retryPolicy- Returns:
- the result | 结果
-
circuitBreaker
Set circuit breaker 设置熔断器- Parameters:
circuitBreaker- the circuitBreaker | circuitBreaker- Returns:
- the result | 结果
-
bulkhead
Set bulkhead 设置舱壁- Parameters:
bulkhead- the bulkhead | bulkhead- Returns:
- the result | 结果
-
timeout
Set operation timeout 设置操作超时- Parameters:
timeout- the timeout | timeout- Returns:
- the result | 结果
-
build
-