zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boaz Kelmer <Boaz.Kel...@twosigma.com>
Subject question about sync() and callback
Date Mon, 06 Jan 2014 16:38:48 GMT
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?

View raw message