Class CacheWarmer.WarmingOptions.Builder

java.lang.Object
cloud.opencode.base.cache.warming.CacheWarmer.WarmingOptions.Builder
Enclosing class:
CacheWarmer.WarmingOptions

public static class CacheWarmer.WarmingOptions.Builder extends Object
Builder for WarmingOptions | WarmingOptions 构建器
Since:
JDK 25, opencode-base-cache V2.0.5
Author:
Leon Soo www.LeonSoo.com
  • Constructor Details

    • Builder

      public Builder()
      Creates a new Builder instance | 创建新的构建器实例
  • Method Details

    • forceRefresh

      public CacheWarmer.WarmingOptions.Builder forceRefresh(boolean force)
      Sets force refresh | 设置强制刷新
      Parameters:
      force - true to force | true 为强制
      Returns:
      this builder | 此构建器
    • stopOnError

      public CacheWarmer.WarmingOptions.Builder stopOnError(boolean stop)
      Sets stop on error | 设置出错停止
      Parameters:
      stop - true to stop | true 为停止
      Returns:
      this builder | 此构建器
    • timeout

      public CacheWarmer.WarmingOptions.Builder timeout(Duration timeout)
      Sets the timeout | 设置超时时间
      Parameters:
      timeout - the timeout | 超时时间
      Returns:
      this builder | 此构建器
    • build

      Builds the WarmingOptions | 构建预热选项
      Returns:
      warming options | 预热选项