Enum PathChildrenCacheMode
- java.lang.Object
-
- java.lang.Enum<PathChildrenCacheMode>
-
- org.apache.curator.framework.recipes.cache.PathChildrenCacheMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PathChildrenCacheMode>
@Deprecated public enum PathChildrenCacheMode extends java.lang.Enum<PathChildrenCacheMode>
Deprecated.no longer used. Instead use eitherPathChildrenCache(CuratorFramework, String, boolean)orPathChildrenCache(CuratorFramework, String, boolean, ThreadFactory)Controls which data is cached
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CACHE_DATADeprecated.The cache will hold all the children and the data for each child node.CACHE_DATA_AND_STATDeprecated.The cache will hold all the children, the data for each child node and the stat for each child nodeCACHE_PATHS_ONLYDeprecated.The cache will hold only the children path names.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static PathChildrenCacheModevalueOf(java.lang.String name)Deprecated.Returns the enum constant of this type with the specified name.static PathChildrenCacheMode[]values()Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CACHE_DATA_AND_STAT
public static final PathChildrenCacheMode CACHE_DATA_AND_STAT
Deprecated.The cache will hold all the children, the data for each child node and the stat for each child node
-
CACHE_DATA
public static final PathChildrenCacheMode CACHE_DATA
Deprecated.The cache will hold all the children and the data for each child node.ChildData.getStat()will returnnull.
-
CACHE_PATHS_ONLY
public static final PathChildrenCacheMode CACHE_PATHS_ONLY
Deprecated.The cache will hold only the children path names.ChildData.getStat()andChildData.getData()will both returnnull.
-
-
Method Detail
-
values
public static PathChildrenCacheMode[] values()
Deprecated.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 (PathChildrenCacheMode c : PathChildrenCacheMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PathChildrenCacheMode valueOf(java.lang.String name)
Deprecated.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
-
-