1 8 package org.jboss.cache.eviction; 9 10 import org.jboss.cache.CacheImpl; 11 import org.jboss.cache.RegionManager; 12 13 21 public class LRUPolicy extends BaseEvictionPolicy implements EvictionPolicy 22 { 23 protected RegionManager regionManager_; 24 25 protected EvictionAlgorithm algorithm; 26 27 public LRUPolicy() 28 { 29 super(); 30 algorithm = new LRUAlgorithm(); 31 } 32 33 public EvictionAlgorithm getEvictionAlgorithm() 34 { 35 return algorithm; 36 } 37 38 public Class getEvictionConfigurationClass() 39 { 40 return LRUConfiguration.class; 41 } 42 43 public void configure(CacheImpl cache) 44 { 45 super.configure(cache); 46 regionManager_ = cache_.getRegionManager(); 47 } 48 } 49 | Popular Tags |