Class EnsureContainers

java.lang.Object
org.apache.curator.framework.EnsureContainers

public class EnsureContainers extends Object
Similar to EnsurePath but creates containers.
  • Constructor Details

    • EnsureContainers

      public EnsureContainers(CuratorFramework client, String path)
      Parameters:
      client - the client
      path - path to ensure is containers
  • Method Details

    • ensure

      public void ensure() throws Exception
      The first time this method is called, all nodes in the path will be created as containers if needed
      Throws:
      Exception - errors
    • reset

      public void reset()
      Reset so that the next call to ensure() will attempt to create containers