Record Class CacheStatisticsManager.StatisticsSnapshot
java.lang.Object
java.lang.Record
com.loomcache.server.jcache.CacheStatisticsManager.StatisticsSnapshot
- Enclosing class:
CacheStatisticsManager
public static record CacheStatisticsManager.StatisticsSnapshot(long hits, long misses, long puts, long removals, long evictions, double hitRatePercentage, double avgGetLatencyMs, double avgPutLatencyMs, long timestamp)
extends Record
Statistics snapshot record.
-
Constructor Summary
ConstructorsConstructorDescriptionStatisticsSnapshot(long hits, long misses, long puts, long removals, long evictions, double hitRatePercentage, double avgGetLatencyMs, double avgPutLatencyMs, long timestamp) Creates an instance of aStatisticsSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theavgGetLatencyMsrecord component.doubleReturns the value of theavgPutLatencyMsrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theevictionsrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thehitRatePercentagerecord component.longhits()Returns the value of thehitsrecord component.longmisses()Returns the value of themissesrecord component.longputs()Returns the value of theputsrecord component.longremovals()Returns the value of theremovalsrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StatisticsSnapshot
public StatisticsSnapshot(long hits, long misses, long puts, long removals, long evictions, double hitRatePercentage, double avgGetLatencyMs, double avgPutLatencyMs, long timestamp) Creates an instance of aStatisticsSnapshotrecord class.- Parameters:
hits- the value for thehitsrecord componentmisses- the value for themissesrecord componentputs- the value for theputsrecord componentremovals- the value for theremovalsrecord componentevictions- the value for theevictionsrecord componenthitRatePercentage- the value for thehitRatePercentagerecord componentavgGetLatencyMs- the value for theavgGetLatencyMsrecord componentavgPutLatencyMs- the value for theavgPutLatencyMsrecord componenttimestamp- the value for thetimestamprecord 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. -
hits
public long hits()Returns the value of thehitsrecord component.- Returns:
- the value of the
hitsrecord component
-
misses
public long misses()Returns the value of themissesrecord component.- Returns:
- the value of the
missesrecord component
-
puts
public long puts()Returns the value of theputsrecord component.- Returns:
- the value of the
putsrecord component
-
removals
public long removals()Returns the value of theremovalsrecord component.- Returns:
- the value of the
removalsrecord component
-
evictions
public long evictions()Returns the value of theevictionsrecord component.- Returns:
- the value of the
evictionsrecord component
-
hitRatePercentage
public double hitRatePercentage()Returns the value of thehitRatePercentagerecord component.- Returns:
- the value of the
hitRatePercentagerecord component
-
avgGetLatencyMs
public double avgGetLatencyMs()Returns the value of theavgGetLatencyMsrecord component.- Returns:
- the value of the
avgGetLatencyMsrecord component
-
avgPutLatencyMs
public double avgPutLatencyMs()Returns the value of theavgPutLatencyMsrecord component.- Returns:
- the value of the
avgPutLatencyMsrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-