File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
mpush-api/src/main/java/com/mpush/api/common Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 29
29
*/
30
30
public interface ServerEventListener extends Plugin {
31
31
32
+ /**
33
+ * 该事件通过guava EventBus发出,实现接口的方法必须增加
34
+ *
35
+ * @Subscribe 和 @AllowConcurrentEvents注解,
36
+ * 并在构造函数调用EventBus.register(this);
37
+ */
32
38
default void on (ServerStartupEvent event ) {
33
39
}
34
40
41
+ /**
42
+ * 该事件通过guava EventBus发出,实现接口的方法必须增加
43
+ *
44
+ * @Subscribe 和 @AllowConcurrentEvents注解,
45
+ * 并在构造函数调用EventBus.register(this);
46
+ */
35
47
default void on (ServerShutdownEvent server ) {
36
48
}
37
49
50
+ /**
51
+ * 该事件通过guava EventBus发出,实现接口的方法必须增加
52
+ *
53
+ * @Subscribe 和 @AllowConcurrentEvents注解,
54
+ * 并在构造函数调用EventBus.register(this);
55
+ */
38
56
default void on (RouterChangeEvent event ) {
39
57
}
40
58
59
+ /**
60
+ * 该事件通过guava EventBus发出,实现接口的方法必须增加
61
+ *
62
+ * @Subscribe 和 @AllowConcurrentEvents注解,
63
+ * 并在构造函数调用EventBus.register(this);
64
+ */
41
65
default void on (KickUserEvent event ) {
42
66
}
43
67
68
+ /**
69
+ * 该事件通过guava EventBus发出,实现接口的方法必须增加
70
+ *
71
+ * @Subscribe 和 @AllowConcurrentEvents注解,
72
+ * 并在构造函数调用EventBus.register(this);
73
+ */
44
74
default void on (UserOnlineEvent event ) {
45
75
}
46
76
77
+ /**
78
+ * 该事件通过guava EventBus发出,实现接口的方法必须增加
79
+ *
80
+ * @Subscribe 和 @AllowConcurrentEvents注解,
81
+ * 并在构造函数调用EventBus.register(this);
82
+ */
47
83
default void on (UserOfflineEvent event ) {
48
84
}
49
85
}
You can’t perform that action at this time.
0 commit comments