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 Summary
ConstructorsConstructorDescriptionWarmingResult(List<CacheWarmerManager.CacheWarmingResult> results, Duration totalDuration) Creates an instance of aWarmingResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfailureCount | failureCountfailures()failures | failuresfinal inthashCode()Returns a hash code value for this object.results()Returns the value of theresultsrecord component.intsuccessCount | successCountfinal StringtoString()Returns a string representation of this record class.Returns the value of thetotalDurationrecord component.inttotalEntries | totalEntries
-
Constructor Details
-
WarmingResult
Creates an instance of aWarmingResultrecord class.- Parameters:
results- the value for theresultsrecord componenttotalDuration- the value for thetotalDurationrecord component
-
-
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
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
results
-
totalDuration
Returns the value of thetotalDurationrecord component.- Returns:
- the value of the
totalDurationrecord component
-