Package org.apache.zookeeper
Class CreateOptions
- java.lang.Object
-
- org.apache.zookeeper.CreateOptions
-
public class CreateOptions extends Object
Options for creating znode in ZooKeeper data tree.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateOptions.BuilderBuilder forCreateOptions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ACL>getAcl()CreateModegetCreateMode()longgetTtl()static CreateOptions.BuildernewBuilder(List<ACL> acl, CreateMode createMode)Constructs a builder forCreateOptions.
-
-
-
Method Detail
-
getCreateMode
public CreateMode getCreateMode()
-
getTtl
public long getTtl()
-
newBuilder
public static CreateOptions.Builder newBuilder(List<ACL> acl, CreateMode createMode)
Constructs a builder forCreateOptions.- Parameters:
acl- the acl for the nodecreateMode- specifying whether the node to be created is ephemeral and/or sequential
-
-