Enum: org.apache.zookeeper.CreateMode
- public final enum CreateMode
- extends Enum<CreateMode>
CreateMode value determines how the znode is created on ZooKeeper.
Inheritance
Superclass tree:- java.lang.Object
- java.lang.Enum<org.apache.zookeeper.CreateMode>
- org.apache.zookeeper.CreateMode
Methods
-
fromFlagtop
public static CreateMode fromFlag(int flag) throws KeeperExceptionMap an integer value to a CreateMode value -
isEphemeraltop
public boolean isEphemeral() -
isSequentialtop
public boolean isSequential() -
toFlagtop
public int toFlag() -
valueOftop
public static CreateMode valueOf(String name) -
valuestop
public static CreateMode[] values()
Fields
-
EPHEMERAL
public static final CreateMode EPHEMERALThe znode will be deleted upon the client's disconnect. -
EPHEMERAL_SEQUENTIAL
public static final CreateMode EPHEMERAL_SEQUENTIALThe znode will be deleted upon the client's disconnect, and its name will be appended with a monotonically increasing number. -
PERSISTENT
public static final CreateMode PERSISTENTThe znode will not be automatically deleted upon client's disconnect. -
PERSISTENT_SEQUENTIAL
public static final CreateMode PERSISTENT_SEQUENTIALThe znode will not be automatically deleted upon client's disconnect, and its name will be appended with a monotonically increasing number.
