It’s the same as in normal ZooKeeper. Provide a background callback handler. e.g.
client.create().inBackground(handler).forPath(…) > On Jul 20, 2016, at 1:50 PM, Sakthipriyan Vairamani > <[email protected]> wrote: > > The documentation is very limited (actually I couldn't find anything covering > this topic). I want to know how the errors are handled in async operations. > > Let's say I want to get data from a node, which doesn't exist in the ZK, with > inBackground(BackgroundCallback). Now, How will I know that the operation > has failed? I used curatorClient.getUnhandledErrorListenable.addListener, > curatorClient.getConnectionStateListenable.addListener, > and curatorClient.getCuratorListenable.addListener None of them generated any > events.
