Enum Class AbilityKey

java.lang.Object
java.lang.Enum<AbilityKey>
com.alibaba.nacos.api.ability.constant.AbilityKey
所有已实现的接口:
Serializable, Comparable<AbilityKey>, java.lang.constant.Constable

public enum AbilityKey extends Enum<AbilityKey>
Ability key constant. It is used to constrain the ability key.
Ensure that return value of getName() is unique under one specify AbilityMode.
作者:
Daydreamer
  • 枚举常量详细资料

    • SERVER_PERSISTENT_INSTANCE_BY_GRPC

      public static final AbilityKey SERVER_PERSISTENT_INSTANCE_BY_GRPC
      Server support register or deregister persistent instance by grpc.
    • SERVER_FUZZY_WATCH

      public static final AbilityKey SERVER_FUZZY_WATCH
      For fuzzy watch naming or config.
    • SERVER_DISTRIBUTED_LOCK

      public static final AbilityKey SERVER_DISTRIBUTED_LOCK
      For Distributed Lock.
    • SDK_CLIENT_FUZZY_WATCH

      public static final AbilityKey SDK_CLIENT_FUZZY_WATCH
      For Test temporarily.
    • SDK_CLIENT_DISTRIBUTED_LOCK

      public static final AbilityKey SDK_CLIENT_DISTRIBUTED_LOCK
      For Test temporarily.
    • CLUSTER_CLIENT_TEST_1

      public static final AbilityKey CLUSTER_CLIENT_TEST_1
      For Test temporarily.
  • 方法详细资料

    • values

      public static AbilityKey[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AbilityKey valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • getName

      public String getName()
    • getDescription

      public String getDescription()
    • getMode

      public AbilityMode getMode()
    • getAllValues

      public static Collection<AbilityKey> getAllValues(AbilityMode mode)
      Get all keys.
      返回:
      all keys
    • getAllNames

      public static Collection<String> getAllNames(AbilityMode mode)
      Get all names.
      返回:
      all names
    • isLegalKey

      public static boolean isLegalKey(AbilityMode mode, String name)
      Whether contains this name.
      参数:
      name - key name
      返回:
      whether contains
    • mapEnum

      public static Map<AbilityKey,Boolean> mapEnum(AbilityMode mode, Map<String,Boolean> abilities)
      Map the string key to enum.
      参数:
      abilities - map
      返回:
      enum map
    • mapStr

      public static Map<String,Boolean> mapStr(Map<AbilityKey,Boolean> abilities)
      . Map the string key to enum
      参数:
      abilities - map
      返回:
      enum map
    • getEnum

      public static AbilityKey getEnum(AbilityMode mode, String key)
      . getter to obtain enum
      参数:
      key - string key
      返回:
      enum