Record Class RepositoryReplicationConflict
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.replication.RepositoryReplicationConflict
- Record Components:
conflictType- stable conflict typeresource- safe resource identifierresolution- default conservative resolutionmetadata- redacted evidence metadata
- All Implemented Interfaces:
Serializable
public record RepositoryReplicationConflict(String conflictType, String resource, RepositoryConflictResolution resolution, Map<String,String> metadata)
extends Record
implements Serializable
Safe repository replication conflict evidence.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryReplicationConflict(String conflictType, String resource, RepositoryConflictResolution resolution, Map<String, String> metadata) Creates a validated immutable conflict record. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconflictTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.Returns the value of theresolutionrecord component.resource()Returns the value of theresourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RepositoryReplicationConflict
-
-
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). -
conflictType
Returns the value of theconflictTyperecord component.- Returns:
- the value of the
conflictTyperecord component
-
resource
-
resolution
Returns the value of theresolutionrecord component.- Returns:
- the value of the
resolutionrecord component
-
metadata
-