public interface AsyncCreateBuilder extends AsyncPathAndBytesable<AsyncStage<String>>
Modifier and Type | Method and Description |
---|---|
AsyncPathAndBytesable<AsyncStage<String>> |
storingStatIn(org.apache.zookeeper.data.Stat stat)
Have the operation fill the provided stat object
|
AsyncPathAndBytesable<AsyncStage<String>> |
withACL(List<org.apache.zookeeper.data.ACL> aclList)
Set an ACL list (default is
ZooDefs.Ids.OPEN_ACL_UNSAFE ) |
AsyncPathAndBytesable<AsyncStage<String>> |
withMode(org.apache.zookeeper.CreateMode createMode)
Use the given create mode.
|
AsyncPathAndBytesable<AsyncStage<String>> |
withOptions(Set<CreateOption> options)
Options to change how the ZNode is created
|
AsyncPathAndBytesable<AsyncStage<String>> |
withOptions(Set<CreateOption> options,
org.apache.zookeeper.CreateMode createMode)
set options and mode
|
AsyncPathAndBytesable<AsyncStage<String>> |
withOptions(Set<CreateOption> options,
org.apache.zookeeper.CreateMode createMode,
List<org.apache.zookeeper.data.ACL> aclList)
set options, mode and ACLs
|
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
|
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
|
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
|
AsyncPathAndBytesable<AsyncStage<String>> |
withOptions(Set<CreateOption> options,
List<org.apache.zookeeper.data.ACL> aclList)
set options and ACLs
|
AsyncPathAndBytesable<AsyncStage<String>> |
withSetDataVersion(int version)
Specify the setData expected matching version when using option
CreateOption.setDataIfExists . |
AsyncPathAndBytesable<AsyncStage<String>> |
withTtl(long ttl)
Specify a TTL when mode is
CreateMode.PERSISTENT_WITH_TTL or
CreateMode.PERSISTENT_SEQUENTIAL_WITH_TTL . |
forPath
forPath
AsyncPathAndBytesable<AsyncStage<String>> storingStatIn(org.apache.zookeeper.data.Stat stat)
stat
- the stat to have filled inAsyncPathAndBytesable<AsyncStage<String>> withMode(org.apache.zookeeper.CreateMode createMode)
CreateMode.PERSISTENT
createMode
- mode to useAsyncPathAndBytesable<AsyncStage<String>> withACL(List<org.apache.zookeeper.data.ACL> aclList)
ZooDefs.Ids.OPEN_ACL_UNSAFE
)aclList
- the ACL list to useAsyncPathAndBytesable<AsyncStage<String>> withTtl(long ttl)
CreateMode.PERSISTENT_WITH_TTL
or
CreateMode.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.ttl
- the ttlAsyncPathAndBytesable<AsyncStage<String>> withSetDataVersion(int version)
CreateOption.setDataIfExists
. By default -1 is used.version
- setData expected matching versionAsyncPathAndBytesable<AsyncStage<String>> withOptions(Set<CreateOption> options)
options
- optionsAsyncPathAndBytesable<AsyncStage<String>> withOptions(Set<CreateOption> options, List<org.apache.zookeeper.data.ACL> aclList)
options
- optionsaclList
- the ACL list to usewithOptions(java.util.Set)
,
withACL(java.util.List)
AsyncPathAndBytesable<AsyncStage<String>> withOptions(Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode, List<org.apache.zookeeper.data.ACL> aclList)
options
- optionscreateMode
- mode to useaclList
- the ACL list to usewithACL(java.util.List)
,
withOptions(java.util.Set)
,
withMode(org.apache.zookeeper.CreateMode)
,
withACL(java.util.List)
AsyncPathAndBytesable<AsyncStage<String>> withOptions(Set<CreateOption> options, org.apache.zookeeper.CreateMode createMode)
options
- optionscreateMode
- mode to usewithOptions(java.util.Set)
,
withMode(org.apache.zookeeper.CreateMode)
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)
options
- optionscreateMode
- mode to useaclList
- the ACL list to usestat
- the stat to have filled inwithOptions(java.util.Set)
,
withMode(org.apache.zookeeper.CreateMode)
,
withACL(java.util.List)
,
storingStatIn(org.apache.zookeeper.data.Stat)
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)
options
- optionscreateMode
- mode to useaclList
- the ACL list to usestat
- the stat to have filled inttl
- the ttl or 0withOptions(java.util.Set)
,
withMode(org.apache.zookeeper.CreateMode)
,
withACL(java.util.List)
,
storingStatIn(org.apache.zookeeper.data.Stat)
,
withTtl(long)
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)
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 -1withOptions(java.util.Set)
,
withMode(org.apache.zookeeper.CreateMode)
,
withACL(java.util.List)
,
storingStatIn(org.apache.zookeeper.data.Stat)
,
withTtl(long)
,
#withSetDataVersion(long)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.