public static enum QuorumPeer.ZabState extends Enum<QuorumPeer.ZabState>
Enum Constant and Description |
---|
BROADCAST |
DISCOVERY |
ELECTION |
SYNCHRONIZATION |
Modifier and Type | Method and Description |
---|---|
static QuorumPeer.ZabState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QuorumPeer.ZabState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QuorumPeer.ZabState ELECTION
public static final QuorumPeer.ZabState DISCOVERY
public static final QuorumPeer.ZabState SYNCHRONIZATION
public static final QuorumPeer.ZabState BROADCAST
public static QuorumPeer.ZabState[] values()
for (QuorumPeer.ZabState c : QuorumPeer.ZabState.values()) System.out.println(c);
public static QuorumPeer.ZabState 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 © 2008–2022 The Apache Software Foundation. All rights reserved.