r***s 发帖数: 737 | 1 Zookeeper document says, the constructor of ZooKeeper class may return
before the connection to the server is established, cause the I/O operation
is async.
My question is, in the case that the connection is not yet established after
the constructor return, then if a ZooKeeper.Create method (sync version) is
called, would it block and finish after the connection is established? or
would it return an error code? What about the async version? |
|