public static enum ConsulConfigProperties.Format extends Enum<ConsulConfigProperties.Format>
枚举常量和说明 |
---|
FILES
Indicates that the configuration specified in consul uses keys as files.
|
KEY_VALUE
Indicates that the configuration specified in consul is of type native key values.
|
PROPERTIES
Indicates that the configuration specified in consul is of property style i.e.,
value of the consul key would be a list of key=value pairs separated by new lines.
|
YAML
Indicates that the configuration specified in consul is of YAML style i.e., value
of the consul key would be YAML format
|
限定符和类型 | 方法和说明 |
---|---|
static ConsulConfigProperties.Format |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ConsulConfigProperties.Format[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ConsulConfigProperties.Format KEY_VALUE
public static final ConsulConfigProperties.Format PROPERTIES
public static final ConsulConfigProperties.Format YAML
public static final ConsulConfigProperties.Format FILES
public static ConsulConfigProperties.Format[] values()
for (ConsulConfigProperties.Format c : ConsulConfigProperties.Format.values()) System.out.println(c);
public static ConsulConfigProperties.Format valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值Copyright © 2018 Pivotal Software, Inc.. All rights reserved.