Enum Class RepositorySynchronizationType

java.lang.Object
java.lang.Enum<RepositorySynchronizationType>
com.atlassian.bitbucket.scm.mirror.RepositorySynchronizationType
All Implemented Interfaces:
Serializable, Comparable<RepositorySynchronizationType>, Constable

public enum RepositorySynchronizationType extends Enum<RepositorySynchronizationType>
The type of synchronization performed on a mirrored repository
Since:
6.7
  • Enum Constant Details

    • INCREMENTAL

      public static final RepositorySynchronizationType INCREMENTAL
      Refs to be updated are computed by the orchestrator and relevant update-ref instructions are passed to each member of the mirror farm. Each member then performs the instructions that were passed to it.
    • SNAPSHOT

      public static final RepositorySynchronizationType SNAPSHOT
      All refs on the remote are fetched by the orchestrator and passed to each member of the mirror farm. Each member then updates its local refs to match the refs that were passed to it.
  • Method Details

    • values

      public static RepositorySynchronizationType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RepositorySynchronizationType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<RepositorySynchronizationType>