2.22.2.3. ZooKeeper Blocking Interface
public class ZooKeeper {
public ZooKeeper (String connectString, int sessionTimeout, Watcher watcher) { ... }
public ZooKeeper (String connectString, int sessionTimeout, Watcher watcher, boolean canBeReadOnly) { ... }
...
public String create (String path, byte data [], List<ACL> acl, CreateMode createMode) { ... }
public void delete (String path, int version) { ... }
public Stat exists (String path, boolean watch) { ... }
public Stat exists (String path, Watcher watcher) { ... }
public byte [] getData (String path, boolean watch, Stat stat) { ... }
public byte [] getData (String path, Watcher watcher, Stat stat) { ... }
public Stat setData (String path, byte data [], int version) { ... }
public List<String> getChildren (String path, boolean watch) { ... }
public List<String> getChildren (String path, boolean watch, Stat stat) { ... }
public List<String> getChildren (String path, Watcher watcher) { ... }
public List<String> getChildren (String path, Watcher watcher, Stat stat) { ... }
// Make sure the server is current with the leader.
public void sync (String path, VoidCallback cb, Object ctx) { ... }
public synchronized void close () { ... }
}