Record Class ReadRouter.ReadRouterStats
java.lang.Object
java.lang.Record
com.loomcache.server.replication.ReadRouter.ReadRouterStats
- Enclosing class:
ReadRouter
public static record ReadRouter.ReadRouterStats(long totalReads, long strongReads, long boundedStalenessReads, long eventualReads, long sessionReads, long avgLatencyMs)
extends Record
Aggregated stats about read routing.
-
Constructor Summary
ConstructorsConstructorDescriptionReadRouterStats(long totalReads, long strongReads, long boundedStalenessReads, long eventualReads, long sessionReads, long avgLatencyMs) Creates an instance of aReadRouterStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theavgLatencyMsrecord component.longReturns the value of theboundedStalenessReadsrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theeventualReadsrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thesessionReadsrecord component.longReturns the value of thestrongReadsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalReadsrecord component.
-
Constructor Details
-
ReadRouterStats
public ReadRouterStats(long totalReads, long strongReads, long boundedStalenessReads, long eventualReads, long sessionReads, long avgLatencyMs) Creates an instance of aReadRouterStatsrecord class.- Parameters:
totalReads- the value for thetotalReadsrecord componentstrongReads- the value for thestrongReadsrecord componentboundedStalenessReads- the value for theboundedStalenessReadsrecord componenteventualReads- the value for theeventualReadsrecord componentsessionReads- the value for thesessionReadsrecord 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. -
totalReads
public long totalReads()Returns the value of thetotalReadsrecord component.- Returns:
- the value of the
totalReadsrecord component
-
strongReads
public long strongReads()Returns the value of thestrongReadsrecord component.- Returns:
- the value of the
strongReadsrecord component
-
boundedStalenessReads
public long boundedStalenessReads()Returns the value of theboundedStalenessReadsrecord component.- Returns:
- the value of the
boundedStalenessReadsrecord component
-
eventualReads
public long eventualReads()Returns the value of theeventualReadsrecord component.- Returns:
- the value of the
eventualReadsrecord component
-
sessionReads
public long sessionReads()Returns the value of thesessionReadsrecord component.- Returns:
- the value of the
sessionReadsrecord component
-
avgLatencyMs
public long avgLatencyMs()Returns the value of theavgLatencyMsrecord component.- Returns:
- the value of the
avgLatencyMsrecord component
-