Record Class WanReplicationManager.WanDeltaSyncResult

java.lang.Object
java.lang.Record
com.loomcache.server.wan.WanReplicationManager.WanDeltaSyncResult
Record Components:
targetClusterId - target cluster identifier
localRootHash - local Merkle root hash
remoteRootHash - remote Merkle root hash supplied by the target
differingBucketCount - number of buckets with differing hashes
upsertCount - number of PUT events enqueued
deleteCount - number of DELETE events enqueued
enqueuedEventCount - total events enqueued for the publisher
Enclosing class:
WanReplicationManager

public static record WanReplicationManager.WanDeltaSyncResult(@NonNull String targetClusterId, @NonNull String localRootHash, @NonNull String remoteRootHash, int differingBucketCount, int upsertCount, int deleteCount, int enqueuedEventCount) extends Record
Summary of a Merkle-based WAN delta-sync plan.
Since:
2.0
  • Constructor Details

    • WanDeltaSyncResult

      public WanDeltaSyncResult(@NonNull String targetClusterId, @NonNull String localRootHash, @NonNull String remoteRootHash, int differingBucketCount, int upsertCount, int deleteCount, int enqueuedEventCount)
      Creates an instance of a WanDeltaSyncResult record class.
      Parameters:
      targetClusterId - the value for the targetClusterId record component
      localRootHash - the value for the localRootHash record component
      remoteRootHash - the value for the remoteRootHash record component
      differingBucketCount - the value for the differingBucketCount record component
      upsertCount - the value for the upsertCount record component
      deleteCount - the value for the deleteCount record component
      enqueuedEventCount - the value for the enqueuedEventCount record component
  • Method Details

    • alreadyConsistent

      public boolean alreadyConsistent()
    • 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
    • localRootHash

      public @NonNull String localRootHash()
      Returns the value of the localRootHash record component.
      Returns:
      the value of the localRootHash record component
    • remoteRootHash

      public @NonNull String remoteRootHash()
      Returns the value of the remoteRootHash record component.
      Returns:
      the value of the remoteRootHash record component
    • differingBucketCount

      public int differingBucketCount()
      Returns the value of the differingBucketCount record component.
      Returns:
      the value of the differingBucketCount record component
    • upsertCount

      public int upsertCount()
      Returns the value of the upsertCount record component.
      Returns:
      the value of the upsertCount record component
    • deleteCount

      public int deleteCount()
      Returns the value of the deleteCount record component.
      Returns:
      the value of the deleteCount record component
    • enqueuedEventCount

      public int enqueuedEventCount()
      Returns the value of the enqueuedEventCount record component.
      Returns:
      the value of the enqueuedEventCount record component