org.I0Itec.zkclient
Interface IZkChildListener


public interface IZkChildListener

An IZkChildListener can be registered at a ZkClient for listening on zk child changes for a given path. Node: Also this listener re-subscribes it watch for the path on each zk event (zk watches are one-timers) is is not guaranteed that events on the path are missing (see http://zookeeper.wiki.sourceforge.net/ZooKeeperWatches). An implementation of this class should take that into account.


Method Summary
 void handleChildChange(java.lang.String parentPath, java.util.List<java.lang.String> currentChilds)
          Called when the children of the given path changed.
 

Method Detail

handleChildChange

void handleChildChange(java.lang.String parentPath,
                       java.util.List<java.lang.String> currentChilds)
                       throws java.lang.Exception
Called when the children of the given path changed.

Parameters:
parentPath - The parent path
currentChilds - The children or null if the root node (parent path) was deleted.
Throws:
java.lang.Exception