public enum SystemMessageTypeEnum extends Enum<SystemMessageTypeEnum>
说明:该枚举适用于服务端监听首次连接和断开连接
| 枚举常量和说明 |
|---|
SYS_LISTENER_ONCLOSE
监听断开连接
|
SYS_LISTENER_ONERROR
监听异常信息
|
SYS_LISTENER_ONOPEN
监听首次连接
|
public static final SystemMessageTypeEnum SYS_LISTENER_ONOPEN
public static final SystemMessageTypeEnum SYS_LISTENER_ONCLOSE
public static final SystemMessageTypeEnum SYS_LISTENER_ONERROR
public static SystemMessageTypeEnum[] values()
for (SystemMessageTypeEnum c : SystemMessageTypeEnum.values()) System.out.println(c);
public static SystemMessageTypeEnum valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2022. All rights reserved.