org.apache.zookeeper
Enum Watcher.Event.KeeperState
java.lang.Object
java.lang.Enum<Watcher.Event.KeeperState>
org.apache.zookeeper.Watcher.Event.KeeperState
- All Implemented Interfaces:
- Serializable, Comparable<Watcher.Event.KeeperState>
- Enclosing interface:
- Watcher.Event
public static enum Watcher.Event.KeeperState
- extends Enum<Watcher.Event.KeeperState>
Enumeration of states the ZooKeeper may be at the event
Unknown
public static final Watcher.Event.KeeperState Unknown
Disconnected
public static final Watcher.Event.KeeperState Disconnected
NoSyncConnected
public static final Watcher.Event.KeeperState NoSyncConnected
SyncConnected
public static final Watcher.Event.KeeperState SyncConnected
Expired
public static final Watcher.Event.KeeperState Expired
values
public static final Watcher.Event.KeeperState[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(Watcher.Event.KeeperState c : Watcher.Event.KeeperState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Watcher.Event.KeeperState valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
getIntValue
public int getIntValue()
fromInt
public static Watcher.Event.KeeperState fromInt(int intValue)
Copyright © 2008 The Apache Software Foundation