Record Class CacheAnalytics.DataStructureMetric
java.lang.Object
java.lang.Record
com.loomcache.server.metrics.CacheAnalytics.DataStructureMetric
- Enclosing class:
CacheAnalytics
-
Constructor Summary
ConstructorsConstructorDescriptionDataStructureMetric(String name, String type, long size, long memoryBytes, double hitRate, double operationsPerSec) Creates an instance of aDataStructureMetricrecord 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.doublehitRate()Returns the value of thehitRaterecord component.longReturns the value of thememoryBytesrecord component.name()Returns the value of thenamerecord component.doubleReturns the value of theoperationsPerSecrecord component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
DataStructureMetric
public DataStructureMetric(String name, String type, long size, long memoryBytes, double hitRate, double operationsPerSec) Creates an instance of aDataStructureMetricrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentsize- the value for thesizerecord componentmemoryBytes- the value for thememoryBytesrecord componenthitRate- the value for thehitRaterecord componentoperationsPerSec- the value for theoperationsPerSecrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
memoryBytes
public long memoryBytes()Returns the value of thememoryBytesrecord component.- Returns:
- the value of the
memoryBytesrecord component
-
hitRate
public double hitRate()Returns the value of thehitRaterecord component.- Returns:
- the value of the
hitRaterecord component
-
operationsPerSec
public double operationsPerSec()Returns the value of theoperationsPerSecrecord component.- Returns:
- the value of the
operationsPerSecrecord component
-