You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Boaz Kelmer <Bo...@twosigma.com> on 2014/01/06 17:38:48 UTC
question about sync() and callback
Hello,
I'm not sure I understand the purpose of some of the arguments to
ZooKeeper.sync(String path, AsyncCallback.VoidCallback cb, Object ctx)
In particular, what's the purpose of the callback?
More specifically, the docs say that a client calling sync and then read will see
data written by the time sync returned.
Is this really the case, or does the client need to wait for the callback for that guarantee?