public enum WatcherMode extends Enum<WatcherMode>
Enum Constant and Description |
---|
PERSISTENT |
PERSISTENT_RECURSIVE |
STANDARD |
Modifier and Type | Field and Description |
---|---|
static WatcherMode |
DEFAULT_WATCHER_MODE |
Modifier and Type | Method and Description |
---|---|
static WatcherMode |
fromZooDef(int mode) |
boolean |
isPersistent() |
boolean |
isRecursive() |
static WatcherMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WatcherMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WatcherMode STANDARD
public static final WatcherMode PERSISTENT
public static final WatcherMode PERSISTENT_RECURSIVE
public static final WatcherMode DEFAULT_WATCHER_MODE
public static WatcherMode[] values()
for (WatcherMode c : WatcherMode.values()) System.out.println(c);
public static WatcherMode 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 static WatcherMode fromZooDef(int mode)
public boolean isPersistent()
public boolean isRecursive()
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.