Skip to content

Commit afad0bb

Browse files
author
夜色
committed
增加必要说明性注释
1 parent 78b6482 commit afad0bb

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

mpush-api/src/main/java/com/mpush/api/common/ServerEventListener.java

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,57 @@
2929
*/
3030
public interface ServerEventListener extends Plugin {
3131

32+
/**
33+
* 该事件通过guava EventBus发出,实现接口的方法必须增加
34+
*
35+
* @Subscribe 和 @AllowConcurrentEvents注解,
36+
* 并在构造函数调用EventBus.register(this);
37+
*/
3238
default void on(ServerStartupEvent event) {
3339
}
3440

41+
/**
42+
* 该事件通过guava EventBus发出,实现接口的方法必须增加
43+
*
44+
* @Subscribe 和 @AllowConcurrentEvents注解,
45+
* 并在构造函数调用EventBus.register(this);
46+
*/
3547
default void on(ServerShutdownEvent server) {
3648
}
3749

50+
/**
51+
* 该事件通过guava EventBus发出,实现接口的方法必须增加
52+
*
53+
* @Subscribe 和 @AllowConcurrentEvents注解,
54+
* 并在构造函数调用EventBus.register(this);
55+
*/
3856
default void on(RouterChangeEvent event) {
3957
}
4058

59+
/**
60+
* 该事件通过guava EventBus发出,实现接口的方法必须增加
61+
*
62+
* @Subscribe 和 @AllowConcurrentEvents注解,
63+
* 并在构造函数调用EventBus.register(this);
64+
*/
4165
default void on(KickUserEvent event) {
4266
}
4367

68+
/**
69+
* 该事件通过guava EventBus发出,实现接口的方法必须增加
70+
*
71+
* @Subscribe 和 @AllowConcurrentEvents注解,
72+
* 并在构造函数调用EventBus.register(this);
73+
*/
4474
default void on(UserOnlineEvent event) {
4575
}
4676

77+
/**
78+
* 该事件通过guava EventBus发出,实现接口的方法必须增加
79+
*
80+
* @Subscribe 和 @AllowConcurrentEvents注解,
81+
* 并在构造函数调用EventBus.register(this);
82+
*/
4783
default void on(UserOfflineEvent event) {
4884
}
4985
}

0 commit comments

Comments
 (0)