Class DistributedCacheStats.Builder

java.lang.Object
cloud.opencode.base.cache.distributed.DistributedCacheStats.Builder
Enclosing class:
DistributedCacheStats

public static final class DistributedCacheStats.Builder extends Object
Builder for DistributedCacheStats. DistributedCacheStats 构建器。
Since:
JDK 25, opencode-base-cache V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Method Details

    • hitCount

      public DistributedCacheStats.Builder hitCount(long hitCount)
      hitCount | hitCount
      Parameters:
      hitCount - the hitCount | hitCount
      Returns:
      the result | 结果
    • missCount

      public DistributedCacheStats.Builder missCount(long missCount)
      missCount | missCount
      Parameters:
      missCount - the missCount | missCount
      Returns:
      the result | 结果
    • loadCount

      public DistributedCacheStats.Builder loadCount(long loadCount)
      loadCount | loadCount
      Parameters:
      loadCount - the loadCount | loadCount
      Returns:
      the result | 结果
    • loadSuccessCount

      public DistributedCacheStats.Builder loadSuccessCount(long loadSuccessCount)
      loadSuccessCount | loadSuccessCount
      Parameters:
      loadSuccessCount - the loadSuccessCount | loadSuccessCount
      Returns:
      the result | 结果
    • loadFailureCount

      public DistributedCacheStats.Builder loadFailureCount(long loadFailureCount)
      loadFailureCount | loadFailureCount
      Parameters:
      loadFailureCount - the loadFailureCount | loadFailureCount
      Returns:
      the result | 结果
    • totalLoadTime

      public DistributedCacheStats.Builder totalLoadTime(Duration totalLoadTime)
      totalLoadTime | totalLoadTime
      Parameters:
      totalLoadTime - the totalLoadTime | totalLoadTime
      Returns:
      the result | 结果
    • evictionCount

      public DistributedCacheStats.Builder evictionCount(long evictionCount)
      evictionCount | evictionCount
      Parameters:
      evictionCount - the evictionCount | evictionCount
      Returns:
      the result | 结果
    • requestCount

      public DistributedCacheStats.Builder requestCount(long requestCount)
      requestCount | requestCount
      Parameters:
      requestCount - the requestCount | requestCount
      Returns:
      the result | 结果
    • connectionCount

      public DistributedCacheStats.Builder connectionCount(int connectionCount)
      connectionCount | connectionCount
      Parameters:
      connectionCount - the connectionCount | connectionCount
      Returns:
      the result | 结果
    • memoryUsed

      public DistributedCacheStats.Builder memoryUsed(long memoryUsed)
      memoryUsed | memoryUsed
      Parameters:
      memoryUsed - the memoryUsed | memoryUsed
      Returns:
      the result | 结果
    • keyCount

      public DistributedCacheStats.Builder keyCount(long keyCount)
      keyCount | keyCount
      Parameters:
      keyCount - the keyCount | keyCount
      Returns:
      the result | 结果
    • avgLatency

      public DistributedCacheStats.Builder avgLatency(Duration avgLatency)
      avgLatency | avgLatency
      Parameters:
      avgLatency - the avgLatency | avgLatency
      Returns:
      the result | 结果
    • p99Latency

      public DistributedCacheStats.Builder p99Latency(Duration p99Latency)
      p99Latency | p99Latency
      Parameters:
      p99Latency - the p99Latency | p99Latency
      Returns:
      the result | 结果
    • lastResetTime

      public DistributedCacheStats.Builder lastResetTime(Instant lastResetTime)
      lastResetTime | lastResetTime
      Parameters:
      lastResetTime - the lastResetTime | lastResetTime
      Returns:
      the result | 结果
    • build

      public DistributedCacheStats build()
      build | build
      Returns:
      the result | 结果