1 |
| package org.jboss.cache.eviction; |
2 |
| |
3 |
| import org.jboss.cache.Fqn; |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| public class ExpirationPolicy extends BaseEvictionPolicy |
11 |
| { |
12 |
| |
13 |
| private EvictionAlgorithm algorithm; |
14 |
| |
15 |
8
| public ExpirationPolicy()
|
16 |
| { |
17 |
8
| algorithm = new ExpirationAlgorithm(this);
|
18 |
| } |
19 |
| |
20 |
16
| public EvictionAlgorithm getEvictionAlgorithm()
|
21 |
| { |
22 |
16
| return algorithm;
|
23 |
| } |
24 |
| |
25 |
4
| public Class<ExpirationConfiguration> getEvictionConfigurationClass()
|
26 |
| { |
27 |
4
| return ExpirationConfiguration.class;
|
28 |
| } |
29 |
| |
30 |
| |
31 |
| |
32 |
| |
33 |
22
| @Override
|
34 |
| public boolean canIgnoreEvent(Fqn fqn, NodeEventType eventType) |
35 |
| { |
36 |
22
| return (eventType == NodeEventType.VISIT_NODE_EVENT);
|
37 |
| } |
38 |
| } |