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 providerCause the data to be uncompressed, even if theCuratorFrameworkhas compressionEnabledSet 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_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
-
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
-
uncompressed
AsyncPathAndBytesable<CuratorOp> uncompressed()Cause the data to be uncompressed, even if theCuratorFrameworkhas compressionEnabled- 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
-
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:
-