Package org.apache.curator.x.async.api
Interface AsyncCreateBuilder
- All Superinterfaces:
AsyncPathable<AsyncStage<String>>,AsyncPathAndBytesable<AsyncStage<String>>
Builder for ZNode creates
-
Method Summary
Modifier and TypeMethodDescriptionstoringStatIn(org.apache.zookeeper.data.Stat stat) Have the operation fill the provided stat objectSet an ACL list (default isZooDefs.Ids.OPEN_ACL_UNSAFE)withMode(org.apache.zookeeper.CreateMode createMode) Use the given create mode.withOptions(Set<CreateOption> options) Options to change how the ZNode is createdwithOptions(Set<CreateOption> options, List<org.apache.zookeeper.data.ACL> aclList) set options and ACLswithOptions(Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode) set options and modewithOptions(Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, List<org.apache.zookeeper.data.ACL> aclList) set options, mode and ACLswithOptions(Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, List<org.apache.zookeeper.data.ACL> aclList, org.apache.zookeeper.data.Stat stat) set options, mode, ACLs, and statwithOptions(Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, List<org.apache.zookeeper.data.ACL> aclList, org.apache.zookeeper.data.Stat stat, long ttl) set options, mode, ACLs, and statwithOptions(Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, List<org.apache.zookeeper.data.ACL> aclList, org.apache.zookeeper.data.Stat stat, long ttl, int setDataVersion) set options, mode, ACLs, and statwithSetDataVersion(int version) Specify the setData expected matching version when using optionCreateOption.setDataIfExists.withTtl(long ttl) Specify a TTL when mode isCreateMode.PERSISTENT_WITH_TTLorCreateMode.PERSISTENT_SEQUENTIAL_WITH_TTL.Methods inherited from interface org.apache.curator.x.async.api.AsyncPathable
forPathMethods inherited from interface org.apache.curator.x.async.api.AsyncPathAndBytesable
forPath
-
Method Details
-
storingStatIn
Have the operation fill the provided stat object- Parameters:
stat- the stat to have filled in- Returns:
- this
-
withMode
Use the given create mode. The default isCreateMode.PERSISTENT- Parameters:
createMode- mode to use- Returns:
- this
-
withACL
Set an ACL list (default isZooDefs.Ids.OPEN_ACL_UNSAFE)- Parameters:
aclList- the ACL list to use- Returns:
- this
-
withTtl
Specify a TTL when mode isCreateMode.PERSISTENT_WITH_TTLorCreateMode.PERSISTENT_SEQUENTIAL_WITH_TTL. If the znode has not been modified within the given TTL, it will be deleted once it has no children. The TTL unit is milliseconds and must be greater than 0 and less than or equal to EphemeralType.MAX_TTL.- Parameters:
ttl- the ttl- Returns:
- this for chaining
-
withSetDataVersion
Specify the setData expected matching version when using optionCreateOption.setDataIfExists. By default -1 is used.- Parameters:
version- setData expected matching version- Returns:
- this for chaining
-
withOptions
Options to change how the ZNode is created- Parameters:
options- options- Returns:
- this
-
withOptions
AsyncPathAndBytesable<AsyncStage<String>> withOptions(Set<CreateOption> options, List<org.apache.zookeeper.data.ACL> aclList) set options and ACLs- Parameters:
options- optionsaclList- the ACL list to use- Returns:
- this
- See Also:
-
withOptions
AsyncPathAndBytesable<AsyncStage<String>> withOptions(Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, List<org.apache.zookeeper.data.ACL> aclList) set options, mode and ACLs- Parameters:
options- optionscreateMode- mode to useaclList- the ACL list to use- Returns:
- this
- See Also:
-
withOptions
AsyncPathAndBytesable<AsyncStage<String>> withOptions(Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode) set options and mode- Parameters:
options- optionscreateMode- mode to use- Returns:
- this
- See Also:
-
withOptions
AsyncPathAndBytesable<AsyncStage<String>> withOptions(Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, List<org.apache.zookeeper.data.ACL> aclList, org.apache.zookeeper.data.Stat stat) set options, mode, ACLs, and stat- Parameters:
options- optionscreateMode- mode to useaclList- the ACL list to usestat- the stat to have filled in- Returns:
- this
- See Also:
-
withOptions
AsyncPathAndBytesable<AsyncStage<String>> withOptions(Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, List<org.apache.zookeeper.data.ACL> aclList, org.apache.zookeeper.data.Stat stat, long ttl) set options, mode, ACLs, and stat- Parameters:
options- optionscreateMode- mode to useaclList- the ACL list to usestat- the stat to have filled inttl- the ttl or 0- Returns:
- this
- See Also:
-
withOptions
AsyncPathAndBytesable<AsyncStage<String>> withOptions(Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, List<org.apache.zookeeper.data.ACL> aclList, org.apache.zookeeper.data.Stat stat, long ttl, int setDataVersion) set options, mode, ACLs, and stat- Parameters:
options- optionscreateMode- mode to useaclList- the ACL list to usestat- the stat to have filled inttl- the ttl or 0setDataVersion- the setData matching version or -1- Returns:
- this
- See Also:
-