Record Class RepositoryReplicationPlan

java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.replication.RepositoryReplicationPlan
Record Components:
coordinates - coordinates selected for artifact replication
includeIndex - whether repository index state should be replicated
includePromotions - whether promotion state should be replicated
includeRollback - whether rollback metadata should be replicated
includeAuditChain - 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 Details

    • RepositoryReplicationPlan

      public RepositoryReplicationPlan(List<ApplicationCoordinate> coordinates, boolean includeIndex, boolean includePromotions, boolean includeRollback, boolean includeAuditChain)
      Creates a validated immutable plan.
  • Method Details

    • artifact

      public static RepositoryReplicationPlan artifact(ApplicationCoordinate coordinate)
      Creates a single-coordinate artifact plan.
      Parameters:
      coordinate - exact coordinate
      Returns:
      replication plan
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • coordinates

      public List<ApplicationCoordinate> coordinates()
      Returns the value of the coordinates record component.
      Returns:
      the value of the coordinates record component
    • includeIndex

      public boolean includeIndex()
      Returns the value of the includeIndex record component.
      Returns:
      the value of the includeIndex record component
    • includePromotions

      public boolean includePromotions()
      Returns the value of the includePromotions record component.
      Returns:
      the value of the includePromotions record component
    • includeRollback

      public boolean includeRollback()
      Returns the value of the includeRollback record component.
      Returns:
      the value of the includeRollback record component
    • includeAuditChain

      public boolean includeAuditChain()
      Returns the value of the includeAuditChain record component.
      Returns:
      the value of the includeAuditChain record component