public static enum BrokerLeadershipPriorityResult.LeadershipPriorityEnum extends Enum<BrokerLeadershipPriorityResult.LeadershipPriorityEnum>
Enum Constant and Description |
---|
DEMOTED
Broker has demoted leadership priority.
|
NORMAL
Broker has normal leadership priority.
|
UNKNOWN
For forwards-compatibility, any leadership priority value that is not recognized by this version of the client will fall back to this.
|
Modifier and Type | Method and Description |
---|---|
byte |
id() |
static BrokerLeadershipPriorityResult.LeadershipPriorityEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BrokerLeadershipPriorityResult.LeadershipPriorityEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BrokerLeadershipPriorityResult.LeadershipPriorityEnum UNKNOWN
public static final BrokerLeadershipPriorityResult.LeadershipPriorityEnum DEMOTED
public static final BrokerLeadershipPriorityResult.LeadershipPriorityEnum NORMAL
public static BrokerLeadershipPriorityResult.LeadershipPriorityEnum[] values()
for (BrokerLeadershipPriorityResult.LeadershipPriorityEnum c : BrokerLeadershipPriorityResult.LeadershipPriorityEnum.values()) System.out.println(c);
public static BrokerLeadershipPriorityResult.LeadershipPriorityEnum 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()