Enum Class GroupState

java.lang.Object
java.lang.Enum<GroupState>
org.apache.kafka.common.GroupState
All Implemented Interfaces:
Serializable, Comparable<GroupState>, Constable

@Evolving public enum GroupState extends Enum<GroupState>
The group state.

The following table shows the correspondence between the group states and types.

StateClassic groupConsumer groupShare group
UNKNOWNYesYesYes
PREPARING_REBALANCEYesYes
COMPLETING_REBALANCEYesYes
STABLEYesYesYes
DEADYesYesYes
EMPTYYesYesYes
ASSIGNINGYes
RECONCILINGYes
  • Enum Constant Details

    • UNKNOWN

      public static final GroupState UNKNOWN
    • PREPARING_REBALANCE

      public static final GroupState PREPARING_REBALANCE
    • COMPLETING_REBALANCE

      public static final GroupState COMPLETING_REBALANCE
    • STABLE

      public static final GroupState STABLE
    • DEAD

      public static final GroupState DEAD
    • EMPTY

      public static final GroupState EMPTY
    • ASSIGNING

      public static final GroupState ASSIGNING
    • RECONCILING

      public static final GroupState RECONCILING
  • Method Details

    • values

      public static GroupState[] 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 GroupState 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
    • parse

      public static GroupState parse(String name)
      Case-insensitive group state lookup by string name.
    • groupStatesForType

      public static Set<GroupState> groupStatesForType(GroupType type)
    • toString

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