1 7 package org.jboss.cache; 8 9 import org.jgroups.View; 10 11 import java.util.Map ; 12 13 21 public interface CacheListener 22 { 23 public enum ModificationType 24 { 25 PUT_DATA, REMOVE_DATA, PUT_MAP 26 } 27 28 35 void nodeCreated(Fqn fqn, boolean pre, boolean isLocal); 36 37 63 void nodeModified(Fqn fqn, boolean pre, boolean isLocal, ModificationType modType, Map <Object , Object > data); 64 65 77 void nodeRemoved(Fqn fqn, boolean pre, boolean isLocal, Map <Object , Object > data); 78 79 85 void nodeVisited(Fqn fqn, boolean pre); 86 87 95 void nodeEvicted(Fqn fqn, boolean pre, boolean isLocal); 96 97 108 void nodeLoaded(Fqn fqn, boolean pre, Map <Object , Object > data); 109 110 119 void nodeMoved(Fqn from, Fqn to, boolean pre, boolean isLocal); 120 121 127 void nodeActivated(Fqn fqn, boolean pre); 128 129 135 void nodePassivated(Fqn fqn, boolean pre); 136 137 142 void cacheStarted(CacheSPI cache); 143 144 149 void cacheStopped(CacheSPI cache); 150 151 156 void viewChange(View new_view); 157 } 158 | Popular Tags |