Record Class WanReplicationManager.WanReplicationStats

java.lang.Object
java.lang.Record
com.loomcache.server.wan.WanReplicationManager.WanReplicationStats
Record Components:
targetClusterId - the target cluster identifier
pendingEvents - number of events waiting to be sent
totalSent - total events sent (sequence counter)
totalAcked - total events acknowledged by remote
totalConflicts - total conflict resolutions performed
bytesTransferred - total bytes transferred to remote
lagMillis - estimated replication lag in milliseconds
paused - whether replication is currently paused
mode - 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 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 a WanReplicationStats record class.
      Parameters:
      targetClusterId - the value for the targetClusterId record component
      pendingEvents - the value for the pendingEvents record component
      totalSent - the value for the totalSent record component
      totalAcked - the value for the totalAcked record component
      totalConflicts - the value for the totalConflicts record component
      bytesTransferred - the value for the bytesTransferred record component
      lagMillis - the value for the lagMillis record component
      paused - the value for the paused record component
      mode - the value for the mode record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • targetClusterId

      public @NonNull String targetClusterId()
      Returns the value of the targetClusterId record component.
      Returns:
      the value of the targetClusterId record component
    • pendingEvents

      public long pendingEvents()
      Returns the value of the pendingEvents record component.
      Returns:
      the value of the pendingEvents record component
    • totalSent

      public long totalSent()
      Returns the value of the totalSent record component.
      Returns:
      the value of the totalSent record component
    • totalAcked

      public long totalAcked()
      Returns the value of the totalAcked record component.
      Returns:
      the value of the totalAcked record component
    • totalConflicts

      public long totalConflicts()
      Returns the value of the totalConflicts record component.
      Returns:
      the value of the totalConflicts record component
    • bytesTransferred

      public long bytesTransferred()
      Returns the value of the bytesTransferred record component.
      Returns:
      the value of the bytesTransferred record component
    • lagMillis

      public long lagMillis()
      Returns the value of the lagMillis record component.
      Returns:
      the value of the lagMillis record component
    • paused

      public boolean paused()
      Returns the value of the paused record component.
      Returns:
      the value of the paused record component
    • mode

      public @NonNull WanReplicationManager.WanMode mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component