private void watchForData() throws InterruptedException, KeeperException { if (LOG.isTraceEnabled()) { LOG.trace(String.format("Getting value for %s", nodePath)); } value = decode(zk.getData(nodePath, watcher, stat)); }
public void set(T v) throws KeeperException, InterruptedException { zk.setData(nodePath, encode(v), -1); }
private void watchForCreation() throws InterruptedException, KeeperException { value = null; zk.exists(nodePath, watcher); }