Record Class DistributedMultiMap.MultiMapStatistics
java.lang.Object
java.lang.Record
com.loomcache.server.datastructures.DistributedMultiMap.MultiMapStatistics
- Record Components:
totalPuts- total number of put operationstotalRemoves- total number of remove operationstotalEntries- current total number of entrieskeyCount- current number of keys
- Enclosing class:
DistributedMultiMap
public static record DistributedMultiMap.MultiMapStatistics(long totalPuts, long totalRemoves, int totalEntries, int keyCount)
extends Record
MultiMapStatistics record for capturing aggregate metrics.
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionMultiMapStatistics(long totalPuts, long totalRemoves, int totalEntries, int keyCount) Creates an instance of aMultiMapStatisticsrecord 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.intkeyCount()Returns the value of thekeyCountrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalEntriesrecord component.longReturns the value of thetotalPutsrecord component.longReturns the value of thetotalRemovesrecord component.
-
Constructor Details
-
MultiMapStatistics
public MultiMapStatistics(long totalPuts, long totalRemoves, int totalEntries, int keyCount) Creates an instance of aMultiMapStatisticsrecord class.- Parameters:
totalPuts- the value for thetotalPutsrecord componenttotalRemoves- the value for thetotalRemovesrecord componenttotalEntries- the value for thetotalEntriesrecord componentkeyCount- the value for thekeyCountrecord 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. -
totalPuts
-
totalRemoves
public long totalRemoves()Returns the value of thetotalRemovesrecord component.- Returns:
- the value of the
totalRemovesrecord component
-
totalEntries
public int totalEntries()Returns the value of thetotalEntriesrecord component.- Returns:
- the value of the
totalEntriesrecord component
-
keyCount
-