Package org.apache.curator.x.async.api
Interface AsyncCreateBuilder
-
- All Superinterfaces:
AsyncPathable<AsyncStage<java.lang.String>>,AsyncPathAndBytesable<AsyncStage<java.lang.String>>
public interface AsyncCreateBuilder extends AsyncPathAndBytesable<AsyncStage<java.lang.String>>
Builder for ZNode creates
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsyncPathAndBytesable<AsyncStage<java.lang.String>>storingStatIn(org.apache.zookeeper.data.Stat stat)Have the operation fill the provided stat objectAsyncPathAndBytesable<AsyncStage<java.lang.String>>withACL(java.util.List<org.apache.zookeeper.data.ACL> aclList)Set an ACL list (default isZooDefs.Ids.OPEN_ACL_UNSAFE)AsyncPathAndBytesable<AsyncStage<java.lang.String>>withMode(org.apache.zookeeper.CreateMode createMode)Use the given create mode.AsyncPathAndBytesable<AsyncStage<java.lang.String>>withOptions(java.util.Set<CreateOption> options)Options to change how the ZNode is createdAsyncPathAndBytesable<AsyncStage<java.lang.String>>withOptions(java.util.Set<CreateOption> options, java.util.List<org.apache.zookeeper.data.ACL> aclList)set options and ACLsAsyncPathAndBytesable<AsyncStage<java.lang.String>>withOptions(java.util.Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode)set options and modeAsyncPathAndBytesable<AsyncStage<java.lang.String>>withOptions(java.util.Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, java.util.List<org.apache.zookeeper.data.ACL> aclList)set options, mode and ACLsAsyncPathAndBytesable<AsyncStage<java.lang.String>>withOptions(java.util.Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, java.util.List<org.apache.zookeeper.data.ACL> aclList, org.apache.zookeeper.data.Stat stat)set options, mode, ACLs, and statAsyncPathAndBytesable<AsyncStage<java.lang.String>>withOptions(java.util.Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, java.util.List<org.apache.zookeeper.data.ACL> aclList, org.apache.zookeeper.data.Stat stat, long ttl)set options, mode, ACLs, and statAsyncPathAndBytesable<AsyncStage<java.lang.String>>withOptions(java.util.Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, java.util.List<org.apache.zookeeper.data.ACL> aclList, org.apache.zookeeper.data.Stat stat, long ttl, int setDataVersion)set options, mode, ACLs, and statAsyncPathAndBytesable<AsyncStage<java.lang.String>>withSetDataVersion(int version)Specify the setData expected matching version when using optionCreateOption.setDataIfExists.AsyncPathAndBytesable<AsyncStage<java.lang.String>>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
forPath
-
Methods inherited from interface org.apache.curator.x.async.api.AsyncPathAndBytesable
forPath
-
-
-
-
Method Detail
-
storingStatIn
AsyncPathAndBytesable<AsyncStage<java.lang.String>> storingStatIn(org.apache.zookeeper.data.Stat stat)
Have the operation fill the provided stat object- Parameters:
stat- the stat to have filled in- Returns:
- this
-
withMode
AsyncPathAndBytesable<AsyncStage<java.lang.String>> withMode(org.apache.zookeeper.CreateMode createMode)
Use the given create mode. The default isCreateMode.PERSISTENT- Parameters:
createMode- mode to use- Returns:
- this
-
withACL
AsyncPathAndBytesable<AsyncStage<java.lang.String>> withACL(java.util.List<org.apache.zookeeper.data.ACL> aclList)
Set an ACL list (default isZooDefs.Ids.OPEN_ACL_UNSAFE)- Parameters:
aclList- the ACL list to use- Returns:
- this
-
withTtl
AsyncPathAndBytesable<AsyncStage<java.lang.String>> withTtl(long ttl)
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
AsyncPathAndBytesable<AsyncStage<java.lang.String>> withSetDataVersion(int version)
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
AsyncPathAndBytesable<AsyncStage<java.lang.String>> withOptions(java.util.Set<CreateOption> options)
Options to change how the ZNode is created- Parameters:
options- options- Returns:
- this
-
withOptions
AsyncPathAndBytesable<AsyncStage<java.lang.String>> withOptions(java.util.Set<CreateOption> options, java.util.List<org.apache.zookeeper.data.ACL> aclList)
set options and ACLs- Parameters:
options- optionsaclList- the ACL list to use- Returns:
- this
- See Also:
withOptions(java.util.Set),withACL(java.util.List)
-
withOptions
AsyncPathAndBytesable<AsyncStage<java.lang.String>> withOptions(java.util.Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, java.util.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:
withACL(java.util.List),withOptions(java.util.Set),withMode(org.apache.zookeeper.CreateMode),withACL(java.util.List)
-
withOptions
AsyncPathAndBytesable<AsyncStage<java.lang.String>> withOptions(java.util.Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode)
set options and mode- Parameters:
options- optionscreateMode- mode to use- Returns:
- this
- See Also:
withOptions(java.util.Set),withMode(org.apache.zookeeper.CreateMode)
-
withOptions
AsyncPathAndBytesable<AsyncStage<java.lang.String>> withOptions(java.util.Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, java.util.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(java.util.Set),withMode(org.apache.zookeeper.CreateMode),withACL(java.util.List),storingStatIn(org.apache.zookeeper.data.Stat)
-
withOptions
AsyncPathAndBytesable<AsyncStage<java.lang.String>> withOptions(java.util.Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, java.util.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(java.util.Set),withMode(org.apache.zookeeper.CreateMode),withACL(java.util.List),storingStatIn(org.apache.zookeeper.data.Stat),withTtl(long)
-
withOptions
AsyncPathAndBytesable<AsyncStage<java.lang.String>> withOptions(java.util.Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, java.util.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:
withOptions(java.util.Set),withMode(org.apache.zookeeper.CreateMode),withACL(java.util.List),storingStatIn(org.apache.zookeeper.data.Stat),withTtl(long),#withSetDataVersion(long)
-
-