Record Class CompiledExpressionCache.CacheStats
java.lang.Object
java.lang.Record
cloud.opencode.base.expression.compiler.CompiledExpressionCache.CacheStats
- Record Components:
size- current size | 当前大小maxSize- max size | 最大大小
- Enclosing class:
CompiledExpressionCache
Cache statistics
缓存统计信息
- Since:
- JDK 25, opencode-base-expression V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionCacheStats(int size, int maxSize) Creates an instance of aCacheStatsrecord 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.intmaxSize()Returns the value of themaxSizerecord component.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.doubleGet utilization percentage 获取使用率百分比
-
Constructor Details
-
CacheStats
-
-
Method Details
-
utilization
public double utilization()Get utilization percentage 获取使用率百分比- Returns:
- utilization (0-100) | 使用率(0-100)
-
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. -
size
-
maxSize
-