goupan
2024-04-03 5506e9a45e717ffcb67ec313b5a4e8206d9b3a39
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package cn.stylefeng.roses.kernel.socket.api.enums;
 
import lombok.Getter;
 
/**
 * 服务端监听器枚举
 * <p>
 * 说明:该枚举适用于服务端监听首次连接和断开连接
 *
 * @author majianguo
 * @date 2021/6/3 上午9:14
 */
@Getter
public enum SystemMessageTypeEnum {
 
    /**
     * 监听首次连接
     */
    SYS_LISTENER_ONOPEN("S00001", "监听首次连接"),
 
    /**
     * 监听断开连接
     */
    SYS_LISTENER_ONCLOSE("S00002", "监听断开连接"),
 
    /**
     * 监听异常信息
     */
    SYS_LISTENER_ONERROR("S00003", "监听异常信息");
 
    private final String code;
 
    private final String name;
 
    SystemMessageTypeEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }
}