public static enum PersistentEphemeralNode.Mode extends Enum<PersistentEphemeralNode.Mode>
| Enum Constant and Description |
|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final PersistentEphemeralNode.Mode EPHEMERAL
CreateMode.EPHEMERALpublic static final PersistentEphemeralNode.Mode EPHEMERAL_SEQUENTIAL
CreateMode.EPHEMERAL_SEQUENTIALpublic static final PersistentEphemeralNode.Mode PROTECTED_EPHEMERAL
CreateMode.EPHEMERAL with protectionpublic static final PersistentEphemeralNode.Mode PROTECTED_EPHEMERAL_SEQUENTIAL
CreateMode.EPHEMERAL_SEQUENTIAL with protectionpublic static PersistentEphemeralNode.Mode[] values()
for (PersistentEphemeralNode.Mode c : PersistentEphemeralNode.Mode.values()) System.out.println(c);
public static PersistentEphemeralNode.Mode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullprotected abstract org.apache.zookeeper.CreateMode getCreateMode(boolean pathIsSet)
protected abstract boolean isProtected()
Copyright © 2011–2015 The Apache Software Foundation. All rights reserved.