|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
MRUPolicy.java | - | 100% | 100% | 100% |
|
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 | * Most Recently Used Policy. | |
11 | * <p/> | |
12 | * This algorithm will evict the most recently used cache entries from cache. | |
13 | * | |
14 | * @author Daniel Huang (dhuang@jboss.org) | |
15 | * @version $Revision: 1.2 $ | |
16 | */ | |
17 | public class MRUPolicy extends BaseEvictionPolicy implements EvictionPolicy | |
18 | { | |
19 | private MRUAlgorithm algorithm; | |
20 | ||
21 | ||
22 | 27 | public MRUPolicy() |
23 | { | |
24 | 27 | super(); |
25 | 27 | algorithm = new MRUAlgorithm(); |
26 | } | |
27 | ||
28 | 24 | public EvictionAlgorithm getEvictionAlgorithm() |
29 | { | |
30 | 24 | return algorithm; |
31 | } | |
32 | ||
33 | 13 | public Class<MRUConfiguration> getEvictionConfigurationClass() |
34 | { | |
35 | 13 | return MRUConfiguration.class; |
36 | } | |
37 | } |
|