1 package org.jboss.cache.eviction; 2 3 import org.jboss.cache.Fqn; 4 5 9 public class ExpirationPolicy extends BaseEvictionPolicy 10 { 11 12 private EvictionAlgorithm algorithm; 13 14 public ExpirationPolicy() { 15 algorithm = new ExpirationAlgorithm(this); 16 } 17 18 public EvictionAlgorithm getEvictionAlgorithm() 19 { 20 return algorithm; 21 } 22 23 public Class getEvictionConfigurationClass() 24 { 25 return ExpirationConfiguration.class; 26 } 27 28 31 @Override  32 public boolean canIgnoreEvent(Fqn fqn, NodeEventType eventType) { 33 return (eventType == NodeEventType.VISIT_NODE_EVENT); 34 } 35 } 36 | Popular Tags |