Record Class RepositoryRepairPlan
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.replication.RepositoryRepairPlan
- Record Components:
artifacts- artifacts to fetch from a verified peerrepairIndex- whether index metadata should be repairedrepairAuditChain- whether replicated audit-chain metadata should be repaired
- All Implemented Interfaces:
Serializable
public record RepositoryRepairPlan(List<ApplicationCoordinate> artifacts, boolean repairIndex, boolean repairAuditChain)
extends Record
implements Serializable
Repair plan for missing or corrupted repository state.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryRepairPlan(List<ApplicationCoordinate> artifacts, boolean repairIndex, boolean repairAuditChain) Creates a validated immutable repair plan. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of therepairAuditChainrecord component.booleanReturns the value of therepairIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RepositoryRepairPlan
public RepositoryRepairPlan(List<ApplicationCoordinate> artifacts, boolean repairIndex, boolean repairAuditChain) Creates a validated immutable repair plan.
-
-
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. -
artifacts
-
repairIndex
public boolean repairIndex()Returns the value of therepairIndexrecord component.- Returns:
- the value of the
repairIndexrecord component
-
repairAuditChain
public boolean repairAuditChain()Returns the value of therepairAuditChainrecord component.- Returns:
- the value of the
repairAuditChainrecord component
-