1 package org.apache.jcs.auxiliary.lateral.behavior;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.io.IOException;
23 import java.io.Serializable;
24 import java.util.Set;
25
26 import org.apache.jcs.engine.behavior.ICacheElement;
27 import org.apache.jcs.engine.behavior.ICacheService;
28
29 /***
30 * Used to retrieve and update the lateral cache.
31 */
32 public interface ILateralCacheService
33 extends ICacheService
34 {
35 /***
36 * Puts a cache item to the cache.
37 * <p>
38 * @param item
39 * @param requesterId
40 * @throws IOException
41 */
42 public void update( ICacheElement item, long requesterId )
43 throws IOException;
44
45 /***
46 * Removes the given key from the specified cache.
47 * <p>
48 * @param cacheName
49 * @param key
50 * @param requesterId
51 * @throws IOException
52 */
53 public void remove( String cacheName, Serializable key, long requesterId )
54 throws IOException;
55
56 /***
57 * Remove all keys from the sepcified cache.
58 * <p>
59 * @param cacheName
60 * @param requesterId
61 * @throws IOException
62 */
63 public void removeAll( String cacheName, long requesterId )
64 throws IOException;
65
66 /***
67 * @param cacheName
68 * @param groupName
69 * @return
70 */
71 public Set getGroupKeys( String cacheName, String groupName );
72 }