public static enum PathChildrenCache.StartMode extends Enum<PathChildrenCache.StartMode>
PathChildrenCache.start(StartMode)
Enum Constant and Description |
---|
BUILD_INITIAL_CACHE
The cache will be primed (in the foreground) with initial values.
|
NORMAL
The cache will be primed (in the background) with initial values.
|
POST_INITIALIZED_EVENT
After cache is primed with initial values (in the background) a
PathChildrenCacheEvent.Type.INITIALIZED will be posted. |
Modifier and Type | Method and Description |
---|---|
static PathChildrenCache.StartMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PathChildrenCache.StartMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PathChildrenCache.StartMode NORMAL
public static final PathChildrenCache.StartMode BUILD_INITIAL_CACHE
PathChildrenCache.rebuild()
will be called before
the PathChildrenCache.start(StartMode)
method returns
in order to get an initial view of the node.public static final PathChildrenCache.StartMode POST_INITIALIZED_EVENT
PathChildrenCacheEvent.Type.INITIALIZED
will be posted.public static PathChildrenCache.StartMode[] values()
for (PathChildrenCache.StartMode c : PathChildrenCache.StartMode.values()) System.out.println(c);
public static PathChildrenCache.StartMode 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 © 2011–2023 The Apache Software Foundation. All rights reserved.