|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| package com.opensymphony.oscache.plugins.clustersupport; |
|
6 |
| |
|
7 |
| import java.io.Serializable; |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
| |
|
18 |
| public class ClusterNotification implements Serializable { |
|
19 |
| |
|
20 |
| |
|
21 |
| |
|
22 |
| |
|
23 |
| public static final int FLUSH_KEY = 1; |
|
24 |
| |
|
25 |
| |
|
26 |
| |
|
27 |
| |
|
28 |
| |
|
29 |
| public static final int FLUSH_GROUP = 2; |
|
30 |
| |
|
31 |
| |
|
32 |
| |
|
33 |
| |
|
34 |
| |
|
35 |
| public static final int FLUSH_PATTERN = 3; |
|
36 |
| |
|
37 |
| |
|
38 |
| |
|
39 |
| |
|
40 |
| |
|
41 |
| public static final int FLUSH_CACHE = 4; |
|
42 |
| |
|
43 |
| |
|
44 |
| |
|
45 |
| |
|
46 |
| protected Serializable data; |
|
47 |
| |
|
48 |
| |
|
49 |
| |
|
50 |
| |
|
51 |
| protected int type; |
|
52 |
| |
|
53 |
| |
|
54 |
| |
|
55 |
| |
|
56 |
| |
|
57 |
| |
|
58 |
| |
|
59 |
| |
|
60 |
| |
|
61 |
0
| public ClusterNotification(int type, Serializable data) {
|
|
62 |
0
| this.type = type;
|
|
63 |
0
| this.data = data;
|
|
64 |
| } |
|
65 |
| |
|
66 |
| |
|
67 |
| |
|
68 |
| |
|
69 |
0
| public Serializable getData() {
|
|
70 |
0
| return data;
|
|
71 |
| } |
|
72 |
| |
|
73 |
| |
|
74 |
| |
|
75 |
| |
|
76 |
0
| public int getType() {
|
|
77 |
0
| return type;
|
|
78 |
| } |
|
79 |
| |
|
80 |
0
| public String toString() {
|
|
81 |
0
| StringBuffer buf = new StringBuffer();
|
|
82 |
0
| buf.append("type=").append(type).append(", data=").append(data);
|
|
83 |
| |
|
84 |
0
| return buf.toString();
|
|
85 |
| } |
|
86 |
| } |