Enum CuratorCacheListener.Type
- java.lang.Object
-
- java.lang.Enum<CuratorCacheListener.Type>
-
- org.apache.curator.framework.recipes.cache.CuratorCacheListener.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CuratorCacheListener.Type>
- Enclosing interface:
- CuratorCacheListener
public static enum CuratorCacheListener.Type extends java.lang.Enum<CuratorCacheListener.Type>
An enumerated type that describes a change
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NODE_CHANGEDA node already in the cache has changedNODE_CREATEDA new node was added to the cacheNODE_DELETEDA node already in the cache was deleted
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CuratorCacheListener.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CuratorCacheListener.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NODE_CREATED
public static final CuratorCacheListener.Type NODE_CREATED
A new node was added to the cache
-
NODE_CHANGED
public static final CuratorCacheListener.Type NODE_CHANGED
A node already in the cache has changed
-
NODE_DELETED
public static final CuratorCacheListener.Type NODE_DELETED
A node already in the cache was deleted
-
-
Method Detail
-
values
public static CuratorCacheListener.Type[] 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 (CuratorCacheListener.Type c : CuratorCacheListener.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CuratorCacheListener.Type 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
-
-