Class CuratorOperations


  • public class CuratorOperations
    extends Object
    Factory for transactional ZooKeeper operations. This mirrors the operations which are actually available in Curator, which unfortunately does not include variants that deletes children, creates parents etc. in a single operation.
    Author:
    Ulf Lilleengen, bratseth
    • Constructor Detail

      • CuratorOperations

        public CuratorOperations()
    • Method Detail

      • deleteAll

        public static List<CuratorOperation> deleteAll​(String path,
                                                       Curator curator)
        Returns operations deleting this path and everything below it, in an order where a parent is ordered after all its children, such that the operations will succeed when executed in the returned order. This does not fail, but returns an empty list if the path does not exist.