1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.jetspeed.cache.file;
19
20
21 /***
22 * FileCacheEventListener on notifications sent when FileCache events occur
23 *
24 * @author David S. Taylor <a href="mailto:taylor@apache.org">David Sean Taylor</a>
25 * @version $Id: FileCacheEventListener.java 516448 2007-03-09 16:25:47Z ate $
26 */
27
28 public interface FileCacheEventListener
29 {
30
31 /***
32 * Refresh event, called when the entry is being refreshed from file system.
33 *
34 * @param entry the entry being refreshed.
35 */
36 void refresh(FileCacheEntry entry) throws Exception;
37
38 /***
39 * Evict event, called when the entry is being evicted out of the cache
40 *
41 * @param entry the entry being refreshed.
42 */
43 void evict(FileCacheEntry entry) throws Exception;
44
45 }
46
47
48