public enum ConsulParameter extends Enum<ConsulParameter>
URLURL.getParameters()| 枚举常量和说明 |
|---|
ACL_TOKEN |
CONSISTENCY_MODE |
DEFAULT_ZONE_METADATA_NAME |
INSTANCE_GROUP |
INSTANCE_ZONE |
TAGS |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getValue(URL registryURL)
The parameter value from the specified registry
URL |
<T> T |
getValue(URL registryURL,
Class<T> valueType,
T defaultValue)
The parameter value from the specified registry
URL |
static ConsulParameter |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ConsulParameter[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ConsulParameter ACL_TOKEN
public static final ConsulParameter TAGS
public static final ConsulParameter INSTANCE_ZONE
public static final ConsulParameter DEFAULT_ZONE_METADATA_NAME
public static final ConsulParameter INSTANCE_GROUP
public static final ConsulParameter CONSISTENCY_MODE
public static ConsulParameter[] values()
for (ConsulParameter c : ConsulParameter.values()) System.out.println(c);
public static ConsulParameter valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getValue(URL registryURL)
URLregistryURL - the specified registry URLdefaultValue if not foundpublic <T> T getValue(URL registryURL, Class<T> valueType, T defaultValue)
URLregistryURL - the specified registry URLvalueType - the type of parameter valuedefaultValue - the default value if parameter is absentdefaultValue if not foundCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.