Record Class ConfigManagerStats
java.lang.Object
java.lang.Record
com.loomcache.server.config.ConfigManagerStats
- Record Components:
totalUpdates- total number of configuration updatestotalReads- total number of configuration readswatcherCount- number of active watchers/listeners
public record ConfigManagerStats(long totalUpdates, long totalReads, int watcherCount)
extends Record
Statistics about ClusterConfigManager operations.
-
Constructor Summary
ConstructorsConstructorDescriptionConfigManagerStats(long totalUpdates, long totalReads, int watcherCount) Creates an instance of aConfigManagerStatsrecord 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.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalReadsrecord component.longReturns the value of thetotalUpdatesrecord component.intReturns the value of thewatcherCountrecord component.
-
Constructor Details
-
ConfigManagerStats
public ConfigManagerStats(long totalUpdates, long totalReads, int watcherCount) Creates an instance of aConfigManagerStatsrecord class.- Parameters:
totalUpdates- the value for thetotalUpdatesrecord componenttotalReads- the value for thetotalReadsrecord componentwatcherCount- the value for thewatcherCountrecord 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. -
totalUpdates
public long totalUpdates()Returns the value of thetotalUpdatesrecord component.- Returns:
- the value of the
totalUpdatesrecord component
-
totalReads
public long totalReads()Returns the value of thetotalReadsrecord component.- Returns:
- the value of the
totalReadsrecord component
-
watcherCount
public int watcherCount()Returns the value of thewatcherCountrecord component.- Returns:
- the value of the
watcherCountrecord component
-