public static enum AlterLeadershipPrioritySpec.PriorityOperationEnum extends Enum<AlterLeadershipPrioritySpec.PriorityOperationEnum>
Enum Constant and Description |
---|
DEMOTE
Demote the given broker.
|
PROMOTE
Promote the given broker.
|
Modifier and Type | Method and Description |
---|---|
byte |
id() |
static AlterLeadershipPrioritySpec.PriorityOperationEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlterLeadershipPrioritySpec.PriorityOperationEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlterLeadershipPrioritySpec.PriorityOperationEnum DEMOTE
public static final AlterLeadershipPrioritySpec.PriorityOperationEnum PROMOTE
public static AlterLeadershipPrioritySpec.PriorityOperationEnum[] values()
for (AlterLeadershipPrioritySpec.PriorityOperationEnum c : AlterLeadershipPrioritySpec.PriorityOperationEnum.values()) System.out.println(c);
public static AlterLeadershipPrioritySpec.PriorityOperationEnum 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 byte id()