Beispiel #1
0
 /** Returns children of the node at the path */
 public List<String> getChildren(final String path, final Watcher watcher, boolean retryOnConnLoss)
     throws KeeperException, InterruptedException {
   if (retryOnConnLoss) {
     return zkCmdExecutor.retryOperation(
         new ZkOperation() {
           @Override
           public List<String> execute() throws KeeperException, InterruptedException {
             return keeper.getChildren(path, watcher);
           }
         });
   } else {
     return keeper.getChildren(path, watcher);
   }
 }