I don't have the code handy, but have you tried TreeCache? On 14 Jul 2016 11:31 PM, "Alvaro Gareppe" <[email protected]> wrote:
> Is there a way to avoid the node creation on PathChildrenCache start() ? > > I have this case > > 1.- There is no node in ZK > 2.- I do this: > cp = new PathChildrenCache(conn, "/a", > PathChildrenCache.CACHE_PATH_ONLY); > cp.start() > 3.- now I have a node /a in ZK > > Im using the pathCache in a different thread (and possibly different > server) of the node creation, so I would like to have an option where the > node is not created, so it does nothing or throws and exception in that > case (both works for me). > > Is there some way to configure the PathChildrenCache to do so ? > > I'm using curator version: 2.9.1 > > -- > Ing. Alvaro Gareppe > [email protected] >
