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 class
CreateOptions.Builder
Builder forCreateOptions
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ACL>
getAcl()
CreateMode
getCreateMode()
long
getTtl()
static CreateOptions.Builder
newBuilder(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
-
-