{
switch (type)
{
case NodeDataChanged:
// listener.onDataChange(path);
_eventThread.send(new ZkCacheEvent("dataChange on " + path + " send to "
+ listener)
{
@Override
public void run() throws Exception
{
listener.onDataChange(clientPath);
}
});
break;
case NodeCreated:
// listener.onDataCreate(path);
_eventThread.send(new ZkCacheEvent("dataCreate on " + path + " send to "
+ listener)
{
@Override
public void run() throws Exception
{
listener.onDataCreate(clientPath);
}
});
break;
case NodeDeleted:
// listener.onDataDelete(path);
_eventThread.send(new ZkCacheEvent("dataDelete on " + path + " send to "
+ listener)
{
@Override
public void run() throws Exception
{