Enum PathChildrenCache.StartMode
java.lang.Object
java.lang.Enum<PathChildrenCache.StartMode>
org.apache.curator.framework.recipes.cache.PathChildrenCache.StartMode
- All Implemented Interfaces:
Serializable
,Comparable<PathChildrenCache.StartMode>
,java.lang.constant.Constable
- Enclosing class:
PathChildrenCache
Method of priming cache on
PathChildrenCache.start(StartMode)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe cache will be primed (in the foreground) with initial values.The cache will be primed (in the background) with initial values.After cache is primed with initial values (in the background) aPathChildrenCacheEvent.Type.INITIALIZED
will be posted. -
Method Summary
Modifier and TypeMethodDescriptionstatic PathChildrenCache.StartMode
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 Details
-
NORMAL
The cache will be primed (in the background) with initial values. Events for existing and new nodes will be posted. -
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
After cache is primed with initial values (in the background) aPathChildrenCacheEvent.Type.INITIALIZED
will be posted.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-