Record Class WanConsumer.WanAck
java.lang.Object
java.lang.Record
com.loomcache.server.wan.WanConsumer.WanAck
- Record Components:
sourceClusterId- the cluster that sent the batchackedUpToSequence- highest sequence number appliedappliedCount- number of events actually appliedconflictCount- number of conflicts resolved
- Enclosing class:
WanConsumer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theackedUpToSequencerecord component.intReturns the value of theappliedCountrecord component.intReturns the value of theconflictCountrecord 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 thesourceClusterIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WanAck
public WanAck(@NonNull String sourceClusterId, long ackedUpToSequence, int appliedCount, int conflictCount) Creates an instance of aWanAckrecord class.- Parameters:
sourceClusterId- the value for thesourceClusterIdrecord componentackedUpToSequence- the value for theackedUpToSequencerecord componentappliedCount- the value for theappliedCountrecord componentconflictCount- the value for theconflictCountrecord 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. -
sourceClusterId
Returns the value of thesourceClusterIdrecord component.- Returns:
- the value of the
sourceClusterIdrecord component
-
ackedUpToSequence
public long ackedUpToSequence()Returns the value of theackedUpToSequencerecord component.- Returns:
- the value of the
ackedUpToSequencerecord component
-
appliedCount
public int appliedCount()Returns the value of theappliedCountrecord component.- Returns:
- the value of the
appliedCountrecord component
-
conflictCount
public int conflictCount()Returns the value of theconflictCountrecord component.- Returns:
- the value of the
conflictCountrecord component
-