client.create().creatingParentsIfNeeded().withMode(CreateMode.SEQUENTIAL).forPath("/foo/path");

Look at the CreateMode enumeration for various options.


On Fri, Nov 8, 2013 at 12:04 PM, Techy Teck <[email protected]> wrote:

> I am trying to create sequence node using Apache Curator. I am not able to
> find any example of that?
>
>     private static void createZnodes(CuratorFramework client) throws
> Exception {
>
>
> client.create().creatingParentsIfNeeded().forPath("/foo/path-");
>     }
>
> Any example will be greatly appreciated.. Thanks..
>

Reply via email to