KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jboss.cache.eviction;
2
3 import org.jboss.cache.CacheImpl;
4 import org.jboss.cache.Fqn;
5
6 /**
7  * @author Ben Feb 13, 2004
8  */

9 public class DummyEvictionPolicy extends BaseEvictionPolicy
10 {
11    public void evict(Fqn fqn) throws Exception JavaDoc
12    {
13       // no-op
14
// throw new RuntimeException("Testing only");
15
}
16
17    public int getWakeupIntervalSeconds()
18    {
19       return 0; //To change body of implemented methods use File | Settings | File Templates.
20
}
21
22    public void configure(CacheImpl cache)
23    {
24       // no op
25
}
26
27    public EvictionAlgorithm getEvictionAlgorithm()
28    {
29       // no op
30
return null;
31    }
32
33    public Class JavaDoc getEvictionConfigurationClass()
34    {
35       return null; //To change body of implemented methods use File | Settings | File Templates.
36
}
37
38
39 }
40
Popular Tags