Record Class CacheWarmerManager.WarmingResult

java.lang.Object
java.lang.Record
cloud.opencode.base.cache.warming.CacheWarmerManager.WarmingResult
Record Components:
results - the list of individual warming results | 各缓存预热结果列表
totalDuration - the total warming duration | 总预热持续时间
Enclosing class:
CacheWarmerManager

public static record CacheWarmerManager.WarmingResult(List<CacheWarmerManager.CacheWarmingResult> results, Duration totalDuration) extends Record
Result for all cache warming 所有缓存预热结果
Since:
JDK 25, opencode-base-cache V2.0.0
Author:
Leon Soo www.LeonSoo.com
  • Constructor Details

  • Method Details

    • totalEntries

      public int totalEntries()
      totalEntries | totalEntries
      Returns:
      the result | 结果
    • successCount

      public int successCount()
      successCount | successCount
      Returns:
      the result | 结果
    • failureCount

      public int failureCount()
      failureCount | failureCount
      Returns:
      the result | 结果
    • failures

      failures | failures
      Returns:
      the result | 结果
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • results

      Returns the value of the results record component.
      Returns:
      the value of the results record component
    • totalDuration

      public Duration totalDuration()
      Returns the value of the totalDuration record component.
      Returns:
      the value of the totalDuration record component