Record Class ReplicationStream.StreamStats
java.lang.Object
java.lang.Record
com.loomcache.server.replication.ReplicationStream.StreamStats
- Enclosing class:
ReplicationStream
public static record ReplicationStream.StreamStats(long entriesSent, long bytesSent, long reconnections, long avgLatencyMs)
extends Record
Aggregated stats about the replication stream.
-
Constructor Summary
ConstructorsConstructorDescriptionStreamStats(long entriesSent, long bytesSent, long reconnections, long avgLatencyMs) Creates an instance of aStreamStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theavgLatencyMsrecord component.longReturns the value of thebytesSentrecord component.longReturns the value of theentriesSentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thereconnectionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StreamStats
public StreamStats(long entriesSent, long bytesSent, long reconnections, long avgLatencyMs) Creates an instance of aStreamStatsrecord class.- Parameters:
entriesSent- the value for theentriesSentrecord componentbytesSent- the value for thebytesSentrecord componentreconnections- the value for thereconnectionsrecord 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. -
entriesSent
public long entriesSent()Returns the value of theentriesSentrecord component.- Returns:
- the value of the
entriesSentrecord component
-
bytesSent
public long bytesSent()Returns the value of thebytesSentrecord component.- Returns:
- the value of the
bytesSentrecord component
-
reconnections
public long reconnections()Returns the value of thereconnectionsrecord component.- Returns:
- the value of the
reconnectionsrecord component
-
avgLatencyMs
public long avgLatencyMs()Returns the value of theavgLatencyMsrecord component.- Returns:
- the value of the
avgLatencyMsrecord component
-