1 7 package org.jboss.cache.eviction; 8 9 13 public class ElementSizePolicy extends BaseEvictionPolicy implements EvictionPolicy 14 { 15 private ElementSizeAlgorithm algorithm; 16 17 public ElementSizePolicy() 18 { 19 super(); 20 algorithm = new ElementSizeAlgorithm(); 21 } 22 23 public EvictionAlgorithm getEvictionAlgorithm() 24 { 25 return this.algorithm; 26 } 27 28 public Class getEvictionConfigurationClass() 29 { 30 return ElementSizeConfiguration.class; 31 } 32 } 33 | Popular Tags |