public static enum Info.Sentinel.Key extends Enum<Info.Sentinel.Key>
枚举常量和说明 |
---|
MASTERS |
RUNNING_SCRIPTS |
SCRIPTS_QUEUE_LENGTH |
SENTINEL_MASTERS |
SIMULATE_FAILURE_FLAGS |
TILT |
限定符和类型 | 方法和说明 |
---|---|
String |
getValue() |
static Info.Sentinel.Key |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Info.Sentinel.Key[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Info.Sentinel.Key MASTERS
public static final Info.Sentinel.Key RUNNING_SCRIPTS
public static final Info.Sentinel.Key SENTINEL_MASTERS
public static final Info.Sentinel.Key TILT
public static final Info.Sentinel.Key SCRIPTS_QUEUE_LENGTH
public static final Info.Sentinel.Key SIMULATE_FAILURE_FLAGS
public static Info.Sentinel.Key[] values()
for (Info.Sentinel.Key c : Info.Sentinel.Key.values()) System.out.println(c);
public static Info.Sentinel.Key valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public String getValue()
Copyright © 2022 buession.com Inc.. All rights reserved.