public enum ConfigType extends Enum<ConfigType>
| 枚举常量和说明 |
|---|
Apollo
Apollo config type.
|
Consul
Consul config type
|
Custom
Custom config type
|
Etcd3
Etcd3 config type
|
File
File config type.
|
Nacos
Nacos config type.
|
SpringCloudConfig
spring cloud config type
|
ZK
zookeeper config type.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ConfigType |
getType(String name)
Gets type.
|
static ConfigType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ConfigType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ConfigType File
public static final ConfigType ZK
public static final ConfigType Nacos
public static final ConfigType Apollo
public static final ConfigType Consul
public static final ConfigType Etcd3
public static final ConfigType SpringCloudConfig
public static final ConfigType Custom
public static ConfigType[] values()
for (ConfigType c : ConfigType.values()) System.out.println(c);
public static ConfigType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static ConfigType getType(String name)
name - the nameCopyright © 2022 Seata. All rights reserved.