Record Class CacheAnalytics.AnalyticsOverview
java.lang.Object
java.lang.Record
com.loomcache.server.metrics.CacheAnalytics.AnalyticsOverview
- Enclosing class:
CacheAnalytics
public static record CacheAnalytics.AnalyticsOverview(long totalEntries, long totalMemoryBytes, double hitRate, double missRate, double throughputOps, double avgLatencyMs)
extends Record
Overview metrics record for dashboard display.
-
Constructor Summary
ConstructorsConstructorDescriptionAnalyticsOverview(long totalEntries, long totalMemoryBytes, double hitRate, double missRate, double throughputOps, double avgLatencyMs) Creates an instance of aAnalyticsOverviewrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theavgLatencyMsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublehitRate()Returns the value of thehitRaterecord component.doublemissRate()Returns the value of themissRaterecord component.doubleReturns the value of thethroughputOpsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalEntriesrecord component.longReturns the value of thetotalMemoryBytesrecord component.
-
Constructor Details
-
AnalyticsOverview
public AnalyticsOverview(long totalEntries, long totalMemoryBytes, double hitRate, double missRate, double throughputOps, double avgLatencyMs) Creates an instance of aAnalyticsOverviewrecord class.- Parameters:
totalEntries- the value for thetotalEntriesrecord componenttotalMemoryBytes- the value for thetotalMemoryBytesrecord componenthitRate- the value for thehitRaterecord componentmissRate- the value for themissRaterecord componentthroughputOps- the value for thethroughputOpsrecord componentavgLatencyMs- the value for theavgLatencyMsrecord 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. -
totalEntries
public long totalEntries()Returns the value of thetotalEntriesrecord component.- Returns:
- the value of the
totalEntriesrecord component
-
totalMemoryBytes
public long totalMemoryBytes()Returns the value of thetotalMemoryBytesrecord component.- Returns:
- the value of the
totalMemoryBytesrecord component
-
hitRate
public double hitRate()Returns the value of thehitRaterecord component.- Returns:
- the value of the
hitRaterecord component
-
missRate
public double missRate()Returns the value of themissRaterecord component.- Returns:
- the value of the
missRaterecord component
-
throughputOps
public double throughputOps()Returns the value of thethroughputOpsrecord component.- Returns:
- the value of the
throughputOpsrecord component
-
avgLatencyMs
public double avgLatencyMs()Returns the value of theavgLatencyMsrecord component.- Returns:
- the value of the
avgLatencyMsrecord component
-