Package org.apache.curator.x.async.api
Interface AsyncTransactionCreateBuilder
-
- All Superinterfaces:
AsyncPathable<org.apache.curator.framework.api.transaction.CuratorOp>,AsyncPathAndBytesable<org.apache.curator.framework.api.transaction.CuratorOp>
public interface AsyncTransactionCreateBuilder extends AsyncPathAndBytesable<org.apache.curator.framework.api.transaction.CuratorOp>
- See Also:
AsyncTransactionOp.create()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsyncPathAndBytesable<org.apache.curator.framework.api.transaction.CuratorOp>compressed()Cause the data to be compressed using the configured compression providerAsyncPathAndBytesable<org.apache.curator.framework.api.transaction.CuratorOp>withACL(java.util.List<org.apache.zookeeper.data.ACL> aclList)Set an ACL list (default isZooDefs.Ids.OPEN_ACL_UNSAFE)AsyncPathAndBytesable<org.apache.curator.framework.api.transaction.CuratorOp>withMode(org.apache.zookeeper.CreateMode createMode)Specify a mode for the create.AsyncPathAndBytesable<org.apache.curator.framework.api.transaction.CuratorOp>withOptions(org.apache.zookeeper.CreateMode createMode, java.util.List<org.apache.zookeeper.data.ACL> aclList, boolean compressed)Specify mode, acl list and compressionAsyncPathAndBytesable<org.apache.curator.framework.api.transaction.CuratorOp>withOptions(org.apache.zookeeper.CreateMode createMode, java.util.List<org.apache.zookeeper.data.ACL> aclList, boolean compressed, long ttl)Specify mode, acl list, compression and ttlAsyncPathAndBytesable<org.apache.curator.framework.api.transaction.CuratorOp>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
-
withMode
AsyncPathAndBytesable<org.apache.curator.framework.api.transaction.CuratorOp> withMode(org.apache.zookeeper.CreateMode createMode)
Specify a mode for the create. The default isCreateMode.PERSISTENT- Parameters:
createMode- mode- Returns:
- this
-
withACL
AsyncPathAndBytesable<org.apache.curator.framework.api.transaction.CuratorOp> 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
-
compressed
AsyncPathAndBytesable<org.apache.curator.framework.api.transaction.CuratorOp> compressed()
Cause the data to be compressed using the configured compression provider- Returns:
- this
-
withTtl
AsyncPathAndBytesable<org.apache.curator.framework.api.transaction.CuratorOp> 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
-
withOptions
AsyncPathAndBytesable<org.apache.curator.framework.api.transaction.CuratorOp> withOptions(org.apache.zookeeper.CreateMode createMode, java.util.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:
withMode(org.apache.zookeeper.CreateMode),withACL(java.util.List),compressed()
-
withOptions
AsyncPathAndBytesable<org.apache.curator.framework.api.transaction.CuratorOp> withOptions(org.apache.zookeeper.CreateMode createMode, java.util.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:
withMode(org.apache.zookeeper.CreateMode),withACL(java.util.List),compressed(),withTtl(long)
-
-