Interface AsyncTransactionCreateBuilder

All Superinterfaces:
AsyncPathable<CuratorOp>, AsyncPathAndBytesable<CuratorOp>

public interface AsyncTransactionCreateBuilder extends AsyncPathAndBytesable<CuratorOp>
See Also:
  • Method Details

    • withMode

      AsyncPathAndBytesable<CuratorOp> withMode(org.apache.zookeeper.CreateMode createMode)
      Specify a mode for the create. The default is CreateMode.PERSISTENT
      Parameters:
      createMode - mode
      Returns:
      this
    • withACL

      AsyncPathAndBytesable<CuratorOp> withACL(List<org.apache.zookeeper.data.ACL> aclList)
      Set an ACL list (default is ZooDefs.Ids.OPEN_ACL_UNSAFE)
      Parameters:
      aclList - the ACL list to use
      Returns:
      this
    • compressed

      Cause the data to be compressed using the configured compression provider
      Returns:
      this
    • withTtl

      AsyncPathAndBytesable<CuratorOp> withTtl(long ttl)
      Specify a TTL when mode is 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.
      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 - mode
      aclList - the ACL list to use
      compressed - 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 - mode
      aclList - the ACL list to use
      compressed - true to compress
      Returns:
      this
      See Also: