@InterfaceAudience.Private public class DeletionListener extends ZooKeeperListener
watcher| Constructor and Description |
|---|
DeletionListener(ZooKeeperWatcher zkWatcher,
String pathToWatch,
CountDownLatch deletedLatch)
Create a new instance of the deletion watcher.
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getException()
Get the last exception which has occurred when re-setting the watch.
|
boolean |
hasException()
Check if an exception has occurred when re-setting the watch.
|
void |
nodeDataChanged(String path) |
void |
nodeDeleted(String path) |
nodeChildrenChanged, nodeCreatedpublic DeletionListener(ZooKeeperWatcher zkWatcher, String pathToWatch, CountDownLatch deletedLatch)
zkWatcher - ZookeeperWatcher instancepathToWatch - (Fully qualified) ZNode path that we are waiting to
be deleted.deletedLatch - Count down on this latch when deletion has occured.public boolean hasException()
public Throwable getException()
public void nodeDataChanged(String path)
nodeDataChanged in class ZooKeeperListenerpublic void nodeDeleted(String path)
nodeDeleted in class ZooKeeperListenerCopyright © 2014 The Apache Software Foundation. All Rights Reserved.