Record Class RefreshAheadCache.RefreshStats
java.lang.Object
java.lang.Record
cloud.opencode.base.cache.RefreshAheadCache.RefreshStats
- Record Components:
trackedEntries- the number of tracked entries | 跟踪的条目数inFlightRefreshes- the number of in-flight refreshes | 进行中的刷新数
- Enclosing class:
RefreshAheadCache<K,V>
public static record RefreshAheadCache.RefreshStats(int trackedEntries, int inFlightRefreshes)
extends Record
Refresh statistics record
刷新统计记录
- Since:
- JDK 25, opencode-base-cache V2.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionRefreshStats(int trackedEntries, int inFlightRefreshes) Creates an instance of aRefreshStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theinFlightRefreshesrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetrackedEntriesrecord component.
-
Constructor Details
-
RefreshStats
public RefreshStats(int trackedEntries, int inFlightRefreshes) Creates an instance of aRefreshStatsrecord class.- Parameters:
trackedEntries- the value for thetrackedEntriesrecord componentinFlightRefreshes- the value for theinFlightRefreshesrecord component
-
-
Method Details
-
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. -
trackedEntries
public int trackedEntries()Returns the value of thetrackedEntriesrecord component.- Returns:
- the value of the
trackedEntriesrecord component
-
inFlightRefreshes
public int inFlightRefreshes()Returns the value of theinFlightRefreshesrecord component.- Returns:
- the value of the
inFlightRefreshesrecord component
-