org.I0Itec.zkclient
Interface IZkDataListener

All Known Implementing Classes:
ContentWatcher

public interface IZkDataListener

An IZkDataListener can be registered at a ZkClient for listening on zk data 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 handleDataChange(java.lang.String dataPath, java.lang.Object data)
           
 void handleDataDeleted(java.lang.String dataPath)
           
 

Method Detail

handleDataChange

void handleDataChange(java.lang.String dataPath,
                      java.lang.Object data)
                      throws java.lang.Exception
Throws:
java.lang.Exception

handleDataDeleted

void handleDataDeleted(java.lang.String dataPath)
                       throws java.lang.Exception
Throws:
java.lang.Exception