Record Class RepositoryReplicationStatus
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.replication.RepositoryReplicationStatus
- Record Components:
localReplica- local replica idpeerReplica- peer replica idmetrics- metrics snapshotconflicts- known safe conflict recordsevidence- recent safe evidence
- All Implemented Interfaces:
Serializable
public record RepositoryReplicationStatus(RepositoryReplicaId localReplica, RepositoryReplicaId peerReplica, RepositoryReplicationMetricsSnapshot metrics, List<RepositoryReplicationConflict> conflicts, List<RepositoryReplicationEvidence> evidence)
extends Record
implements Serializable
Safe repository replication status.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryReplicationStatus(RepositoryReplicaId localReplica, RepositoryReplicaId peerReplica, RepositoryReplicationMetricsSnapshot metrics, List<RepositoryReplicationConflict> conflicts, List<RepositoryReplicationEvidence> evidence) Creates an immutable status snapshot. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconflictsrecord component.final booleanIndicates whether some other object is "equal to" this one.evidence()Returns the value of theevidencerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelocalReplicarecord component.metrics()Returns the value of themetricsrecord component.Returns the value of thepeerReplicarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RepositoryReplicationStatus
public RepositoryReplicationStatus(RepositoryReplicaId localReplica, RepositoryReplicaId peerReplica, RepositoryReplicationMetricsSnapshot metrics, List<RepositoryReplicationConflict> conflicts, List<RepositoryReplicationEvidence> evidence) Creates an immutable status snapshot.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
localReplica
Returns the value of thelocalReplicarecord component.- Returns:
- the value of the
localReplicarecord component
-
peerReplica
Returns the value of thepeerReplicarecord component.- Returns:
- the value of the
peerReplicarecord component
-
metrics
-
conflicts
-
evidence
-