Record Class WanReplicationManager.WanReplicationStats
java.lang.Object
java.lang.Record
com.loomcache.server.wan.WanReplicationManager.WanReplicationStats
- Record Components:
targetClusterId- the target cluster identifierpendingEvents- number of events waiting to be senttotalSent- total events sent (sequence counter)totalAcked- total events acknowledged by remotetotalConflicts- total conflict resolutions performedbytesTransferred- total bytes transferred to remotelagMillis- estimated replication lag in millisecondspaused- whether replication is currently pausedmode- the replication mode
- Enclosing class:
WanReplicationManager
public static record WanReplicationManager.WanReplicationStats(@NonNull String targetClusterId, long pendingEvents, long totalSent, long totalAcked, long totalConflicts, long bytesTransferred, long lagMillis, boolean paused, @NonNull WanReplicationManager.WanMode mode)
extends Record
Replication statistics for a single WAN target.
- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionWanReplicationStats(@NonNull String targetClusterId, long pendingEvents, long totalSent, long totalAcked, long totalConflicts, long bytesTransferred, long lagMillis, boolean paused, @NonNull WanReplicationManager.WanMode mode) Creates an instance of aWanReplicationStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebytesTransferredrecord 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 thelagMillisrecord component.@NonNull WanReplicationManager.WanModemode()Returns the value of themoderecord component.booleanpaused()Returns the value of thepausedrecord component.longReturns the value of thependingEventsrecord component.@NonNull StringReturns the value of thetargetClusterIdrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalAckedrecord component.longReturns the value of thetotalConflictsrecord component.longReturns the value of thetotalSentrecord component.
-
Constructor Details
-
WanReplicationStats
public WanReplicationStats(@NonNull String targetClusterId, long pendingEvents, long totalSent, long totalAcked, long totalConflicts, long bytesTransferred, long lagMillis, boolean paused, @NonNull WanReplicationManager.WanMode mode) Creates an instance of aWanReplicationStatsrecord class.- Parameters:
targetClusterId- the value for thetargetClusterIdrecord componentpendingEvents- the value for thependingEventsrecord componenttotalSent- the value for thetotalSentrecord componenttotalAcked- the value for thetotalAckedrecord componenttotalConflicts- the value for thetotalConflictsrecord componentbytesTransferred- the value for thebytesTransferredrecord componentlagMillis- the value for thelagMillisrecord componentpaused- the value for thepausedrecord componentmode- the value for themoderecord 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. -
targetClusterId
Returns the value of thetargetClusterIdrecord component.- Returns:
- the value of the
targetClusterIdrecord component
-
pendingEvents
public long pendingEvents()Returns the value of thependingEventsrecord component.- Returns:
- the value of the
pendingEventsrecord component
-
totalSent
-
totalAcked
public long totalAcked()Returns the value of thetotalAckedrecord component.- Returns:
- the value of the
totalAckedrecord component
-
totalConflicts
public long totalConflicts()Returns the value of thetotalConflictsrecord component.- Returns:
- the value of the
totalConflictsrecord component
-
bytesTransferred
public long bytesTransferred()Returns the value of thebytesTransferredrecord component.- Returns:
- the value of the
bytesTransferredrecord component
-
lagMillis
-
paused
-
mode
-