public enum ServiceEventType extends Enum<ServiceEventType>
ServiceEvent Type when triggered| 枚举常量和说明 |
|---|
EXPIRE
client expired
|
HEART_BEAT
Heartbeat check
|
REGISTER
Register a new client
|
RESET_INSTANCE
Reset local client list
|
public static final ServiceEventType REGISTER
public static final ServiceEventType HEART_BEAT
public static final ServiceEventType RESET_INSTANCE
public static final ServiceEventType EXPIRE
public static ServiceEventType[] values()
for (ServiceEventType c : ServiceEventType.values()) System.out.println(c);
public static ServiceEventType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2020. All rights reserved.