Class CacheWarmer.WarmingOptions.Builder
java.lang.Object
cloud.opencode.base.cache.warming.CacheWarmer.WarmingOptions.Builder
- Enclosing class:
CacheWarmer.WarmingOptions
Builder for WarmingOptions | WarmingOptions 构建器
- Since:
- JDK 25, opencode-base-cache V2.0.5
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the WarmingOptions | 构建预热选项forceRefresh(boolean force) Sets force refresh | 设置强制刷新stopOnError(boolean stop) Sets stop on error | 设置出错停止Sets the timeout | 设置超时时间
-
Constructor Details
-
Builder
public Builder()Creates a new Builder instance | 创建新的构建器实例
-
-
Method Details
-
forceRefresh
Sets force refresh | 设置强制刷新- Parameters:
force- true to force | true 为强制- Returns:
- this builder | 此构建器
-
stopOnError
Sets stop on error | 设置出错停止- Parameters:
stop- true to stop | true 为停止- Returns:
- this builder | 此构建器
-
timeout
Sets the timeout | 设置超时时间- Parameters:
timeout- the timeout | 超时时间- Returns:
- this builder | 此构建器
-
build
Builds the WarmingOptions | 构建预热选项- Returns:
- warming options | 预热选项
-