Interface AsyncSetACLBuilder


  • public interface AsyncSetACLBuilder
    Builder for setting ACLs
    • Method Detail

      • withACL

        AsyncPathable<AsyncStage<org.apache.zookeeper.data.Stat>> withACL​(java.util.List<org.apache.zookeeper.data.ACL> aclList)
        Set the given ACLs
        Parameters:
        aclList - ACLs to set
        Returns:
        this
      • withACL

        AsyncPathable<AsyncStage<org.apache.zookeeper.data.Stat>> withACL​(java.util.List<org.apache.zookeeper.data.ACL> aclList,
                                                                          int version)
        Set the given ACLs only if the "a" version matches. By default -1 is used which matches all versions.
        Parameters:
        aclList - ACLs to set
        version - "a" version
        Returns:
        this
        See Also:
        Stat.getAversion()