Enum PathChildrenCache.StartMode
- java.lang.Object
-
- java.lang.Enum<PathChildrenCache.StartMode>
-
- org.apache.curator.framework.recipes.cache.PathChildrenCache.StartMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PathChildrenCache.StartMode>
- Enclosing class:
- PathChildrenCache
public static enum PathChildrenCache.StartMode extends java.lang.Enum<PathChildrenCache.StartMode>
Method of priming cache onPathChildrenCache.start(StartMode)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUILD_INITIAL_CACHEThe cache will be primed (in the foreground) with initial values.NORMALThe cache will be primed (in the background) with initial values.POST_INITIALIZED_EVENTAfter cache is primed with initial values (in the background) aPathChildrenCacheEvent.Type.INITIALIZEDwill be posted.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PathChildrenCache.StartModevalueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
NORMAL
public static final PathChildrenCache.StartMode NORMAL
The cache will be primed (in the background) with initial values. Events for existing and new nodes will be posted.
-
BUILD_INITIAL_CACHE
public static final PathChildrenCache.StartMode BUILD_INITIAL_CACHE
The cache will be primed (in the foreground) with initial values.PathChildrenCache.rebuild()will be called before thePathChildrenCache.start(StartMode)method returns in order to get an initial view of the node.
-
POST_INITIALIZED_EVENT
public static final PathChildrenCache.StartMode POST_INITIALIZED_EVENT
After cache is primed with initial values (in the background) aPathChildrenCacheEvent.Type.INITIALIZEDwill be posted.
-
-
Method Detail
-
values
public static PathChildrenCache.StartMode[] 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 (PathChildrenCache.StartMode c : PathChildrenCache.StartMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PathChildrenCache.StartMode valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-