Record Class CacheWarmerManager.WarmingMetrics
java.lang.Object
java.lang.Record
cloud.opencode.base.cache.warming.CacheWarmerManager.WarmingMetrics
- Record Components:
registeredCaches- the number of registered caches | 注册的缓存数activeWarmings- the number of active warmings | 活跃预热数totalEntriesWarmed- the total entries warmed | 总预热条目数totalWarmingTimeNanos- the total warming time in nanoseconds | 总预热时间(纳秒)
- Enclosing class:
CacheWarmerManager
public static record CacheWarmerManager.WarmingMetrics(int registeredCaches, int activeWarmings, long totalEntriesWarmed, long totalWarmingTimeNanos)
extends Record
Warming metrics
预热指标
- Since:
- JDK 25, opencode-base-cache V2.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionWarmingMetrics(int registeredCaches, int activeWarmings, long totalEntriesWarmed, long totalWarmingTimeNanos) Creates an instance of aWarmingMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveWarmingsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theregisteredCachesrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalEntriesWarmedrecord component.totalWarmingTime | totalWarmingTimelongReturns the value of thetotalWarmingTimeNanosrecord component.
-
Constructor Details
-
WarmingMetrics
public WarmingMetrics(int registeredCaches, int activeWarmings, long totalEntriesWarmed, long totalWarmingTimeNanos) Creates an instance of aWarmingMetricsrecord class.- Parameters:
registeredCaches- the value for theregisteredCachesrecord componentactiveWarmings- the value for theactiveWarmingsrecord componenttotalEntriesWarmed- the value for thetotalEntriesWarmedrecord componenttotalWarmingTimeNanos- the value for thetotalWarmingTimeNanosrecord component
-
-
Method Details
-
totalWarmingTime
-
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 with thecomparemethod from their corresponding wrapper classes. -
registeredCaches
public int registeredCaches()Returns the value of theregisteredCachesrecord component.- Returns:
- the value of the
registeredCachesrecord component
-
activeWarmings
public int activeWarmings()Returns the value of theactiveWarmingsrecord component.- Returns:
- the value of the
activeWarmingsrecord component
-
totalEntriesWarmed
public long totalEntriesWarmed()Returns the value of thetotalEntriesWarmedrecord component.- Returns:
- the value of the
totalEntriesWarmedrecord component
-
totalWarmingTimeNanos
public long totalWarmingTimeNanos()Returns the value of thetotalWarmingTimeNanosrecord component.- Returns:
- the value of the
totalWarmingTimeNanosrecord component
-