Created
March 28, 2020 20:25
-
-
Save Randgalt/cbe38cb3cdf1825f73dd165d997a2248 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.apache.curator.framework.recipes.cache; | |
public class CuratorCacheListenerAdaptor implements CuratorCacheListener | |
{ | |
@Override | |
public void event(Type type, ChildData oldData, ChildData data) | |
{ | |
switch ( type ) | |
{ | |
case NODE_CREATED: | |
onNodeCreate(data); | |
break; | |
case NODE_CHANGED: | |
onNodeChanged(oldData, data); | |
break; | |
case NODE_DELETED: | |
onNodeDeleted(oldData); | |
break; | |
} | |
} | |
public void onNodeCreate(ChildData data) | |
{ | |
// default NOP | |
} | |
public void onNodeChanged(ChildData oldData, ChildData data) | |
{ | |
// default NOP | |
} | |
public void onNodeDeleted(ChildData oldData) | |
{ | |
// default NOP | |
} | |
@Override | |
public void initialized() | |
{ | |
// default NOP | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment