Interface AsyncTransactionCreateBuilder

    • 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 provider
      AsyncPathAndBytesable<org.apache.curator.framework.api.transaction.CuratorOp> withACL​(java.util.List<org.apache.zookeeper.data.ACL> aclList)
      Set an ACL list (default is ZooDefs.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 compression
      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
      AsyncPathAndBytesable<org.apache.curator.framework.api.transaction.CuratorOp> withTtl​(long ttl)
      Specify a TTL when mode is CreateMode.PERSISTENT_WITH_TTL or CreateMode.PERSISTENT_SEQUENTIAL_WITH_TTL.
    • 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 is CreateMode.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 is ZooDefs.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 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