com.netflix.curator.framework.recipes.cache
Enum PathChildrenCacheEvent.Type

java.lang.Object
  extended by java.lang.Enum<PathChildrenCacheEvent.Type>
      extended by com.netflix.curator.framework.recipes.cache.PathChildrenCacheEvent.Type
All Implemented Interfaces:
Serializable, Comparable<PathChildrenCacheEvent.Type>
Enclosing class:
PathChildrenCacheEvent

public static enum PathChildrenCacheEvent.Type
extends Enum<PathChildrenCacheEvent.Type>

Type of change


Enum Constant Summary
CHILD_ADDED
          A child was added to the path
CHILD_REMOVED
          A child was removed from the path
CHILD_UPDATED
          A child's data was changed
RESET
          The cache was cleared due to an error/ZK event, etc.
 
Method Summary
static PathChildrenCacheEvent.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PathChildrenCacheEvent.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CHILD_ADDED

public static final PathChildrenCacheEvent.Type CHILD_ADDED
A child was added to the path


CHILD_UPDATED

public static final PathChildrenCacheEvent.Type CHILD_UPDATED
A child's data was changed


CHILD_REMOVED

public static final PathChildrenCacheEvent.Type CHILD_REMOVED
A child was removed from the path


RESET

public static final PathChildrenCacheEvent.Type RESET
The cache was cleared due to an error/ZK event, etc.

Method Detail

values

public static PathChildrenCacheEvent.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 (PathChildrenCacheEvent.Type c : PathChildrenCacheEvent.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 PathChildrenCacheEvent.Type valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2012. All Rights Reserved.