Enum Class LeaderFollowerStateType

java.lang.Object
java.lang.Enum<LeaderFollowerStateType>
com.linkedin.davinci.kafka.consumer.LeaderFollowerStateType
All Implemented Interfaces:
Serializable, Comparable<LeaderFollowerStateType>, Constable

public enum LeaderFollowerStateType extends Enum<LeaderFollowerStateType>
  • Enum Constant Details

    • LEADER

      public static final LeaderFollowerStateType LEADER
      This partition is the leader.
    • STANDBY

      public static final LeaderFollowerStateType STANDBY
      This partition is a follower.
    • IN_TRANSITION_FROM_STANDBY_TO_LEADER

      public static final LeaderFollowerStateType IN_TRANSITION_FROM_STANDBY_TO_LEADER
      This partition is in the transition process from follower to leader, but it hasn't finished doing all the status check yet; so it's still running as a follower, but it will switch to the leader role at anytime.
    • PAUSE_TRANSITION_FROM_STANDBY_TO_LEADER

      public static final LeaderFollowerStateType PAUSE_TRANSITION_FROM_STANDBY_TO_LEADER
      This partition is paused from follower to leader transition, to avoid two leaders in the process of store migration; so it's still running as a follower and won't switch to the leader role until the end of migration.
  • Method Details

    • values

      public static LeaderFollowerStateType[] 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 LeaderFollowerStateType 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
    • valueOf

      public static LeaderFollowerStateType 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()