枚举 SelectorType

  • 所有已实现的接口:
    java.io.Serializable, java.lang.Comparable<SelectorType>

    public enum SelectorType
    extends java.lang.Enum<SelectorType>
    The types of selector accepted by Nacos.
    从以下版本开始:
    0.7.0
    作者:
    nkorange
    • 枚举常量概要

      枚举常量 
      枚举常量 说明
      cluster
      select by cluster.
      enable
      select by enable state.
      health
      select by health state.
      label
      select by label.
      none
      not filter out any entity.
      unknown
      not match any type.
    • 构造器概要

      构造器 
      限定符 构造器 说明
      private SelectorType()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static SelectorType valueOf​(java.lang.String name)
      返回带有指定名称的该类型的枚举常量。
      static SelectorType[] values()
      按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
      • 从类继承的方法 java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • 从类继承的方法 java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 枚举常量详细资料

      • unknown

        public static final SelectorType unknown
        not match any type.
      • none

        public static final SelectorType none
        not filter out any entity.
      • label

        public static final SelectorType label
        select by label.
      • cluster

        public static final SelectorType cluster
        select by cluster.
      • health

        public static final SelectorType health
        select by health state.
      • enable

        public static final SelectorType enable
        select by enable state.
    • 构造器详细资料

      • SelectorType

        private SelectorType()
    • 方法详细资料

      • values

        public static SelectorType[] values()
        按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:
        for (SelectorType c : SelectorType.values())
            System.out.println(c);
        
        返回:
        按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
      • valueOf

        public static SelectorType valueOf​(java.lang.String name)
        返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
        参数:
        name - 要返回的枚举常量的名称。
        返回:
        返回带有指定名称的枚举常量
        抛出:
        java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
        java.lang.NullPointerException - 如果参数为空值