public static enum KetchLeader.State extends Enum<KetchLeader.State>
| Enum Constant and Description |
|---|
CANDIDATE
Newly created instance trying to elect itself leader.
|
DEPOSED
Instance has been deposed by another with a more recent term.
|
LEADER
Leader instance elected by a majority.
|
SHUTDOWN
Leader has been gracefully shutdown, e.g.
|
| Modifier and Type | Method and Description |
|---|---|
static KetchLeader.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KetchLeader.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KetchLeader.State CANDIDATE
public static final KetchLeader.State LEADER
public static final KetchLeader.State DEPOSED
public static final KetchLeader.State SHUTDOWN
public static KetchLeader.State[] values()
for (KetchLeader.State c : KetchLeader.State.values()) System.out.println(c);
public static KetchLeader.State 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 nullCopyright © 2017 Eclipse JGit Project. All rights reserved.