Package org.apache.curator.x.async.api
Interface AsyncTransactionCreateBuilder
- All Superinterfaces:
AsyncPathable<CuratorOp>
,AsyncPathAndBytesable<CuratorOp>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCause the data to be compressed using the configured compression providerSet an ACL list (default isZooDefs.Ids.OPEN_ACL_UNSAFE
)withMode
(org.apache.zookeeper.CreateMode createMode) Specify a mode for the create.withOptions
(org.apache.zookeeper.CreateMode createMode, List<org.apache.zookeeper.data.ACL> aclList, boolean compressed) Specify mode, acl list and compressionwithOptions
(org.apache.zookeeper.CreateMode createMode, List<org.apache.zookeeper.data.ACL> aclList, boolean compressed, long ttl) Specify mode, acl list, compression and ttlwithTtl
(long ttl) Specify a TTL when mode isCreateMode.PERSISTENT_WITH_TTL
orCreateMode.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 Details
-
withMode
Specify a mode for the create. The default isCreateMode.PERSISTENT
- Parameters:
createMode
- mode- Returns:
- this
-
withACL
Set an ACL list (default isZooDefs.Ids.OPEN_ACL_UNSAFE
)- Parameters:
aclList
- the ACL list to use- Returns:
- this
-
compressed
AsyncPathAndBytesable<CuratorOp> compressed()Cause the data to be compressed using the configured compression provider- Returns:
- this
-
withTtl
Specify a TTL when mode isCreateMode.PERSISTENT_WITH_TTL
orCreateMode.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
-
withOptions
AsyncPathAndBytesable<CuratorOp> withOptions(org.apache.zookeeper.CreateMode createMode, List<org.apache.zookeeper.data.ACL> aclList, boolean compressed) Specify mode, acl list and compression- Parameters:
createMode
- modeaclList
- the ACL list to usecompressed
- true to compress- Returns:
- this
- See Also:
-
withOptions
AsyncPathAndBytesable<CuratorOp> withOptions(org.apache.zookeeper.CreateMode createMode, List<org.apache.zookeeper.data.ACL> aclList, boolean compressed, long ttl) Specify mode, acl list, compression and ttl- Parameters:
createMode
- modeaclList
- the ACL list to usecompressed
- true to compress- Returns:
- this
- See Also:
-