Package org.apache.zookeeper
Enum Watcher.WatcherType
- java.lang.Object
-
- java.lang.Enum<Watcher.WatcherType>
-
- org.apache.zookeeper.Watcher.WatcherType
-
- All Implemented Interfaces:
Serializable
,Comparable<Watcher.WatcherType>
- Enclosing interface:
- Watcher
@Public public static enum Watcher.WatcherType extends Enum<Watcher.WatcherType>
Enumeration of types of watchers
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Any
Children
Data
Persistent
PersistentRecursive
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Watcher.WatcherType
fromInt(int intValue)
int
getIntValue()
static Watcher.WatcherType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Watcher.WatcherType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Children
public static final Watcher.WatcherType Children
-
Data
public static final Watcher.WatcherType Data
-
Persistent
public static final Watcher.WatcherType Persistent
-
PersistentRecursive
public static final Watcher.WatcherType PersistentRecursive
-
Any
public static final Watcher.WatcherType Any
-
-
Method Detail
-
values
public static Watcher.WatcherType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Watcher.WatcherType c : Watcher.WatcherType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Watcher.WatcherType 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 nameNullPointerException
- if the argument is null
-
getIntValue
public int getIntValue()
-
fromInt
public static Watcher.WatcherType fromInt(int intValue)
-
-