public interface AsyncTransactionCreateBuilder extends AsyncPathAndBytesable<CuratorOp>
AsyncTransactionOp.create()
Modifier and Type | Method and Description |
---|---|
AsyncPathAndBytesable<CuratorOp> |
compressed()
Cause the data to be compressed using the configured compression provider
|
AsyncPathAndBytesable<CuratorOp> |
withACL(List<org.apache.zookeeper.data.ACL> aclList)
Set an ACL list (default is
ZooDefs.Ids.OPEN_ACL_UNSAFE ) |
AsyncPathAndBytesable<CuratorOp> |
withMode(org.apache.zookeeper.CreateMode createMode)
Specify a mode for the create.
|
AsyncPathAndBytesable<CuratorOp> |
withOptions(org.apache.zookeeper.CreateMode createMode,
List<org.apache.zookeeper.data.ACL> aclList,
boolean compressed)
Specify mode, acl list and compression
|
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
|
AsyncPathAndBytesable<CuratorOp> |
withTtl(long ttl)
Specify a TTL when mode is
CreateMode.PERSISTENT_WITH_TTL or
CreateMode.PERSISTENT_SEQUENTIAL_WITH_TTL . |
forPath
forPath
AsyncPathAndBytesable<CuratorOp> withMode(org.apache.zookeeper.CreateMode createMode)
CreateMode.PERSISTENT
createMode
- modeAsyncPathAndBytesable<CuratorOp> withACL(List<org.apache.zookeeper.data.ACL> aclList)
ZooDefs.Ids.OPEN_ACL_UNSAFE
)aclList
- the ACL list to useAsyncPathAndBytesable<CuratorOp> compressed()
AsyncPathAndBytesable<CuratorOp> 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<CuratorOp> withOptions(org.apache.zookeeper.CreateMode createMode, List<org.apache.zookeeper.data.ACL> aclList, boolean compressed)
createMode
- modeaclList
- the ACL list to usecompressed
- true to compresswithMode(org.apache.zookeeper.CreateMode)
,
withACL(java.util.List)
,
compressed()
AsyncPathAndBytesable<CuratorOp> withOptions(org.apache.zookeeper.CreateMode createMode, List<org.apache.zookeeper.data.ACL> aclList, boolean compressed, long ttl)
createMode
- modeaclList
- the ACL list to usecompressed
- true to compresswithMode(org.apache.zookeeper.CreateMode)
,
withACL(java.util.List)
,
compressed()
,
withTtl(long)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.