org.apache.curator.framework.recipes.nodes
Enum PersistentEphemeralNode.Mode

java.lang.Object
  extended by java.lang.Enum<PersistentEphemeralNode.Mode>
      extended by org.apache.curator.framework.recipes.nodes.PersistentEphemeralNode.Mode
All Implemented Interfaces:
Serializable, Comparable<PersistentEphemeralNode.Mode>
Enclosing class:
PersistentEphemeralNode

public static enum PersistentEphemeralNode.Mode
extends Enum<PersistentEphemeralNode.Mode>

The mode for node creation


Enum Constant Summary
EPHEMERAL
          Same as CreateMode.EPHEMERAL
EPHEMERAL_SEQUENTIAL
          Same as CreateMode.EPHEMERAL_SEQUENTIAL
PROTECTED_EPHEMERAL
          Same as CreateMode.EPHEMERAL with protection
PROTECTED_EPHEMERAL_SEQUENTIAL
          Same as CreateMode.EPHEMERAL_SEQUENTIAL with protection
 
Method Summary
protected abstract  org.apache.zookeeper.CreateMode getCreateMode(boolean pathIsSet)
           
protected abstract  boolean isProtected()
           
static PersistentEphemeralNode.Mode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PersistentEphemeralNode.Mode[] 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

EPHEMERAL

public static final PersistentEphemeralNode.Mode EPHEMERAL
Same as CreateMode.EPHEMERAL


EPHEMERAL_SEQUENTIAL

public static final PersistentEphemeralNode.Mode EPHEMERAL_SEQUENTIAL
Same as CreateMode.EPHEMERAL_SEQUENTIAL


PROTECTED_EPHEMERAL

public static final PersistentEphemeralNode.Mode PROTECTED_EPHEMERAL
Same as CreateMode.EPHEMERAL with protection


PROTECTED_EPHEMERAL_SEQUENTIAL

public static final PersistentEphemeralNode.Mode PROTECTED_EPHEMERAL_SEQUENTIAL
Same as CreateMode.EPHEMERAL_SEQUENTIAL with protection

Method Detail

values

public static PersistentEphemeralNode.Mode[] 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 (PersistentEphemeralNode.Mode c : PersistentEphemeralNode.Mode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PersistentEphemeralNode.Mode 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

getCreateMode

protected abstract org.apache.zookeeper.CreateMode getCreateMode(boolean pathIsSet)

isProtected

protected abstract boolean isProtected()


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.