Record Class RepositoryReplicationPlan
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.replication.RepositoryReplicationPlan
- Record Components:
coordinates- coordinates selected for artifact replicationincludeIndex- whether repository index state should be replicatedincludePromotions- whether promotion state should be replicatedincludeRollback- whether rollback metadata should be replicatedincludeAuditChain- whether audit-chain records should be replicated
- All Implemented Interfaces:
Serializable
public record RepositoryReplicationPlan(List<ApplicationCoordinate> coordinates, boolean includeIndex, boolean includePromotions, boolean includeRollback, boolean includeAuditChain)
extends Record
implements Serializable
Explicit replication plan.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryReplicationPlan(List<ApplicationCoordinate> coordinates, boolean includeIndex, boolean includePromotions, boolean includeRollback, boolean includeAuditChain) Creates a validated immutable plan. -
Method Summary
Modifier and TypeMethodDescriptionstatic RepositoryReplicationPlanartifact(ApplicationCoordinate coordinate) Creates a single-coordinate artifact plan.Returns the value of thecoordinatesrecord 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 theincludeAuditChainrecord component.booleanReturns the value of theincludeIndexrecord component.booleanReturns the value of theincludePromotionsrecord component.booleanReturns the value of theincludeRollbackrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RepositoryReplicationPlan
public RepositoryReplicationPlan(List<ApplicationCoordinate> coordinates, boolean includeIndex, boolean includePromotions, boolean includeRollback, boolean includeAuditChain) Creates a validated immutable plan.
-
-
Method Details
-
artifact
Creates a single-coordinate artifact plan.- Parameters:
coordinate- exact coordinate- Returns:
- replication plan
-
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. -
coordinates
Returns the value of thecoordinatesrecord component.- Returns:
- the value of the
coordinatesrecord component
-
includeIndex
public boolean includeIndex()Returns the value of theincludeIndexrecord component.- Returns:
- the value of the
includeIndexrecord component
-
includePromotions
public boolean includePromotions()Returns the value of theincludePromotionsrecord component.- Returns:
- the value of the
includePromotionsrecord component
-
includeRollback
public boolean includeRollback()Returns the value of theincludeRollbackrecord component.- Returns:
- the value of the
includeRollbackrecord component
-
includeAuditChain
public boolean includeAuditChain()Returns the value of theincludeAuditChainrecord component.- Returns:
- the value of the
includeAuditChainrecord component
-