1 7 package org.jboss.cache.eviction; 8 9 import org.jboss.cache.CacheImpl; 10 import org.jboss.cache.Fqn; 11 12 import java.util.Set ; 13 14 23 public interface EvictionPolicy 24 { 25 31 void evict(Fqn fqn) throws Exception ; 32 33 39 Set getChildrenNames(Fqn fqn); 40 41 47 boolean hasChild(Fqn fqn); 48 49 Object getCacheData(Fqn fqn, Object key); 50 51 54 void configure(CacheImpl cache); 55 56 63 EvictionAlgorithm getEvictionAlgorithm(); 64 65 70 Class <EvictionPolicyConfig> getEvictionConfigurationClass(); 71 72 99 boolean canIgnoreEvent(Fqn fqn, NodeEventType eventType); 100 } 101 | Popular Tags |