https://issues.apache.org/jira/browse/ZOOKEEPER-1167

On Tue, Jun 7, 2016 at 4:46 PM, Michael Han <[email protected]> wrote:

> Hi devs,
>
> Currently ZooKeeper::sync() API only has an asynchronous version:
>
> public void sync(String
> <
> http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true
> >
> path,
>                  AsyncCallback.VoidCallback
> <
> https://zookeeper.apache.org/doc/r3.5.1-alpha/api/org/apache/zookeeper/AsyncCallback.VoidCallback.html
> >
> cb,
>                  Object
> <
> http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true
> >
> ctx)
>
> Asynchronous sync. Flushes channel between process and leader.
>
> Given that all other existing APIs have both sync and async version, should
> we also have a synchronous version of the "sync()" API?
>
> --
> Cheers
> Michael.
>

Reply via email to