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