|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| package com.opensymphony.oscache.base.events; |
|
6 |
| |
|
7 |
| import com.opensymphony.oscache.base.CacheEntry; |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
| public final class CacheMapAccessEvent extends CacheEvent { |
|
18 |
| |
|
19 |
| |
|
20 |
| |
|
21 |
| private CacheEntry entry = null; |
|
22 |
| |
|
23 |
| |
|
24 |
| |
|
25 |
| |
|
26 |
| private CacheMapAccessEventType eventType = null; |
|
27 |
| |
|
28 |
| |
|
29 |
| |
|
30 |
| |
|
31 |
| |
|
32 |
| |
|
33 |
| |
|
34 |
24
| public CacheMapAccessEvent(CacheMapAccessEventType eventType, CacheEntry entry) {
|
|
35 |
24
| this(eventType, entry, null);
|
|
36 |
| } |
|
37 |
| |
|
38 |
| |
|
39 |
| |
|
40 |
| |
|
41 |
| |
|
42 |
| |
|
43 |
| |
|
44 |
| |
|
45 |
2012408
| public CacheMapAccessEvent(CacheMapAccessEventType eventType, CacheEntry entry, String origin) {
|
|
46 |
2012408
| super(origin);
|
|
47 |
2012408
| this.eventType = eventType;
|
|
48 |
2012408
| this.entry = entry;
|
|
49 |
| } |
|
50 |
| |
|
51 |
| |
|
52 |
| |
|
53 |
| |
|
54 |
8
| public CacheEntry getCacheEntry() {
|
|
55 |
8
| return entry;
|
|
56 |
| } |
|
57 |
| |
|
58 |
| |
|
59 |
| |
|
60 |
| |
|
61 |
8
| public String getCacheEntryKey() {
|
|
62 |
8
| return entry.getKey();
|
|
63 |
| } |
|
64 |
| |
|
65 |
| |
|
66 |
| |
|
67 |
| |
|
68 |
208
| public CacheMapAccessEventType getEventType() {
|
|
69 |
208
| return eventType;
|
|
70 |
| } |
|
71 |
| } |