1 |
| package org.jboss.cache.eviction; |
2 |
| |
3 |
| import org.jboss.cache.CacheSPI; |
4 |
| import org.jboss.cache.Fqn; |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| public abstract class BaseEvictionPolicy implements EvictionPolicy |
14 |
| { |
15 |
| protected CacheSPI cache_; |
16 |
| |
17 |
4276
| public BaseEvictionPolicy()
|
18 |
| { |
19 |
| } |
20 |
| |
21 |
| |
22 |
| |
23 |
| |
24 |
| |
25 |
| |
26 |
| |
27 |
| |
28 |
| |
29 |
86766
| public void evict(Fqn fqn) throws Exception
|
30 |
| { |
31 |
86766
| cache_.evict(fqn, false);
|
32 |
| } |
33 |
| |
34 |
1140
| public void setCache(CacheSPI cache)
|
35 |
| { |
36 |
1140
| this.cache_ = cache;
|
37 |
| } |
38 |
| |
39 |
32
| public CacheSPI getCache()
|
40 |
| { |
41 |
32
| return this.cache_;
|
42 |
| } |
43 |
| |
44 |
| |
45 |
| |
46 |
| |
47 |
| |
48 |
| |
49 |
1362597
| public boolean canIgnoreEvent(Fqn fqn, NodeEventType eventType)
|
50 |
| { |
51 |
1362597
| return false;
|
52 |
| } |
53 |
| } |