KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > eviction > ElementSizePolicy


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.cache.eviction;
8
9 /**
10  * @author Daniel Huang
11  * @version $Revison: $
12  */

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 JavaDoc getEvictionConfigurationClass()
29    {
30       return ElementSizeConfiguration.class;
31    }
32 }
33
Popular Tags