@InterfaceStability.Evolving public enum ElectionType extends Enum<ElectionType>
Admin.electLeaders(ElectionType, Set, org.apache.kafka.clients.admin.ElectLeadersOptions)
.
The API of this class is evolving, see Admin
for details.Modifier and Type | Field and Description |
---|---|
byte |
value |
Modifier and Type | Method and Description |
---|---|
static ElectionType |
valueOf(byte value) |
static ElectionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ElectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ElectionType PREFERRED
public static final ElectionType UNCLEAN
public static ElectionType[] values()
for (ElectionType c : ElectionType.values())
System.out.println(c);
public static ElectionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ElectionType valueOf(byte value)