Enum Class LeaderCompleteState

java.lang.Object
java.lang.Enum<LeaderCompleteState>
com.linkedin.venice.writer.LeaderCompleteState
All Implemented Interfaces:
VeniceEnumValue, Serializable, Comparable<LeaderCompleteState>, Constable

public enum LeaderCompleteState extends Enum<LeaderCompleteState> implements VeniceEnumValue
Completion state of the leader partition.
  • Enum Constant Details

    • LEADER_NOT_COMPLETED

      public static final LeaderCompleteState LEADER_NOT_COMPLETED
      Leader partition is not completed yet: Default state
    • LEADER_COMPLETED

      public static final LeaderCompleteState LEADER_COMPLETED
      Leader partition is completed
  • Method Details

    • values

      public static LeaderCompleteState[] 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 LeaderCompleteState 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
    • getLeaderCompleteState

      public static LeaderCompleteState getLeaderCompleteState(boolean isLeaderCompleted)
    • valueOf

      public static LeaderCompleteState valueOf(int value)
      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:
      value - 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
    • getValue

      public int getValue()
      Specified by:
      getValue in interface VeniceEnumValue