枚举 AbilityKey
- 所有已实现的接口:
Serializable,Comparable<AbilityKey>,java.lang.constant.Constable
Ability key constant. It is used to constrain the ability key.
Ensure that return value of
Ensure that return value of
getName() is unique under one specify AbilityMode.- 作者:
- Daydreamer
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
枚举常量概要
枚举常量枚举常量说明For Test temporarily.For Test temporarily.For Test temporarily.For Distributed Lock.For fuzzy watch naming or config.Server support register or deregister persistent instance by grpc. -
字段概要
字段修饰符和类型字段说明private static final Map<AbilityMode, Map<String, AbilityKey>> All key set.private final Stringdescription or comment about this ability.private final Stringthe name of a certain ability.private final AbilityModeability mode, which endpoint hold this ability. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Collection<String> getAllNames(AbilityMode mode) Get all names.static Collection<AbilityKey> getAllValues(AbilityMode mode) Get all keys.static AbilityKeygetEnum(AbilityMode mode, String key) .getMode()getName()static booleanisLegalKey(AbilityMode mode, String name) Whether contains this name.static Map<AbilityKey, Boolean> mapEnum(AbilityMode mode, Map<String, Boolean> abilities) Map the string key to enum.mapStr(Map<AbilityKey, Boolean> abilities) .static AbilityKey返回带有指定名称的该类型的枚举常量。static AbilityKey[]values()返回包含该枚举类型的常量的数组, 顺序与声明这些常量的顺序相同
-
枚举常量详细资料
-
SERVER_PERSISTENT_INSTANCE_BY_GRPC
Server support register or deregister persistent instance by grpc. -
SERVER_FUZZY_WATCH
For fuzzy watch naming or config. -
SERVER_DISTRIBUTED_LOCK
For Distributed Lock. -
SDK_CLIENT_FUZZY_WATCH
For Test temporarily. -
SDK_CLIENT_DISTRIBUTED_LOCK
For Test temporarily. -
CLUSTER_CLIENT_TEST_1
For Test temporarily.
-
-
字段详细资料
-
keyName
the name of a certain ability. -
description
description or comment about this ability. -
mode
ability mode, which endpoint hold this ability. -
ALL_ABILITIES
All key set.
-
-
构造器详细资料
-
AbilityKey
-
-
方法详细资料
-
values
返回包含该枚举类型的常量的数组, 顺序与声明这些常量的顺序相同- 返回:
- 包含该枚举类型的常量的数组,顺序与声明这些常量的顺序相同
-
valueOf
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
getName
-
getDescription
-
getMode
-
getAllValues
Get all keys.- 返回:
- all keys
-
getAllNames
Get all names.- 返回:
- all names
-
isLegalKey
Whether contains this name.- 参数:
name- key name- 返回:
- whether contains
-
mapEnum
Map the string key to enum.- 参数:
abilities- map- 返回:
- enum map
-
mapStr
. Map the string key to enum- 参数:
abilities- map- 返回:
- enum map
-
getEnum
. getter to obtain enum- 参数:
key- string key- 返回:
- enum
-