|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| package com.opensymphony.oscache.base.events; |
|
6 |
| |
|
7 |
| import java.util.Date; |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| public final class ScopeEvent extends CacheEvent { |
|
17 |
| |
|
18 |
| |
|
19 |
| |
|
20 |
| private Date date = null; |
|
21 |
| |
|
22 |
| |
|
23 |
| |
|
24 |
| |
|
25 |
| private ScopeEventType eventType = null; |
|
26 |
| |
|
27 |
| |
|
28 |
| |
|
29 |
| |
|
30 |
| private int scope = 0; |
|
31 |
| |
|
32 |
| |
|
33 |
| |
|
34 |
| |
|
35 |
| |
|
36 |
| |
|
37 |
| |
|
38 |
| |
|
39 |
8
| public ScopeEvent(ScopeEventType eventType, int scope, Date date) {
|
|
40 |
8
| this(eventType, scope, date, null);
|
|
41 |
| } |
|
42 |
| |
|
43 |
| |
|
44 |
| |
|
45 |
| |
|
46 |
| |
|
47 |
| |
|
48 |
| |
|
49 |
| |
|
50 |
| |
|
51 |
24
| public ScopeEvent(ScopeEventType eventType, int scope, Date date, String origin) {
|
|
52 |
24
| super(origin);
|
|
53 |
24
| this.eventType = eventType;
|
|
54 |
24
| this.scope = scope;
|
|
55 |
24
| this.date = date;
|
|
56 |
| } |
|
57 |
| |
|
58 |
| |
|
59 |
| |
|
60 |
| |
|
61 |
16
| public Date getDate() {
|
|
62 |
16
| return date;
|
|
63 |
| } |
|
64 |
| |
|
65 |
| |
|
66 |
| |
|
67 |
| |
|
68 |
24
| public ScopeEventType getEventType() {
|
|
69 |
24
| return eventType;
|
|
70 |
| } |
|
71 |
| |
|
72 |
| |
|
73 |
| |
|
74 |
| |
|
75 |
20
| public int getScope() {
|
|
76 |
20
| return scope;
|
|
77 |
| } |
|
78 |
| } |