Record Class WanReplicationManager.WanDeltaSyncResult
java.lang.Object
java.lang.Record
com.loomcache.server.wan.WanReplicationManager.WanDeltaSyncResult
- Record Components:
targetClusterId- target cluster identifierlocalRootHash- local Merkle root hashremoteRootHash- remote Merkle root hash supplied by the targetdifferingBucketCount- number of buckets with differing hashesupsertCount- number of PUT events enqueueddeleteCount- number of DELETE events enqueuedenqueuedEventCount- 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 Summary
ConstructorsConstructorDescriptionWanDeltaSyncResult(@NonNull String targetClusterId, @NonNull String localRootHash, @NonNull String remoteRootHash, int differingBucketCount, int upsertCount, int deleteCount, int enqueuedEventCount) Creates an instance of aWanDeltaSyncResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns the value of thedeleteCountrecord component.intReturns the value of thedifferingBucketCountrecord component.intReturns the value of theenqueuedEventCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull StringReturns the value of thelocalRootHashrecord component.@NonNull StringReturns the value of theremoteRootHashrecord component.@NonNull StringReturns the value of thetargetClusterIdrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theupsertCountrecord component.
-
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 aWanDeltaSyncResultrecord class.- Parameters:
targetClusterId- the value for thetargetClusterIdrecord componentlocalRootHash- the value for thelocalRootHashrecord componentremoteRootHash- the value for theremoteRootHashrecord componentdifferingBucketCount- the value for thedifferingBucketCountrecord componentupsertCount- the value for theupsertCountrecord componentdeleteCount- the value for thedeleteCountrecord componentenqueuedEventCount- the value for theenqueuedEventCountrecord component
-
-
Method Details
-
alreadyConsistent
public boolean alreadyConsistent() -
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
-
localRootHash
Returns the value of thelocalRootHashrecord component.- Returns:
- the value of the
localRootHashrecord component
-
remoteRootHash
Returns the value of theremoteRootHashrecord component.- Returns:
- the value of the
remoteRootHashrecord component
-
differingBucketCount
public int differingBucketCount()Returns the value of thedifferingBucketCountrecord component.- Returns:
- the value of the
differingBucketCountrecord component
-
upsertCount
public int upsertCount()Returns the value of theupsertCountrecord component.- Returns:
- the value of the
upsertCountrecord component
-
deleteCount
public int deleteCount()Returns the value of thedeleteCountrecord component.- Returns:
- the value of the
deleteCountrecord component
-
enqueuedEventCount
public int enqueuedEventCount()Returns the value of theenqueuedEventCountrecord component.- Returns:
- the value of the
enqueuedEventCountrecord component
-