public enum MetadataFailoverType extends Enum<MetadataFailoverType>
| Enum Constant and Description |
|---|
METADATAFAILOVERALL
降级返回所有节点
|
METADATAFAILOVERNONE
默认不降级
|
METADATAFAILOVERNOTKEY
返回不包含元数据路由key的节点
|
| Modifier and Type | Method and Description |
|---|---|
static MetadataFailoverType |
getByName(String name) |
String |
getName() |
static MetadataFailoverType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetadataFailoverType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetadataFailoverType METADATAFAILOVERNONE
public static final MetadataFailoverType METADATAFAILOVERALL
public static final MetadataFailoverType METADATAFAILOVERNOTKEY
public static MetadataFailoverType[] values()
for (MetadataFailoverType c : MetadataFailoverType.values()) System.out.println(c);
public static MetadataFailoverType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getName()
public static MetadataFailoverType getByName(String name)
Copyright © 2023. All rights reserved.