接口 NacosEnvironment

  • 所有已知实现类:
    SearchableEnvironment

    public interface NacosEnvironment
    nacos env interface.
    作者:
    onewe
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      java.lang.Boolean getBoolean​(java.lang.String key)
      get boolean, if the value can not be got by the special key, the null will be returned.
      java.lang.Boolean getBoolean​(java.lang.String key, java.lang.Boolean defaultValue)
      get boolean, if the value can not be got by the special key, the default value will be returned.
      java.lang.Integer getInteger​(java.lang.String key)
      get integer, if the value can not be got by the special key, the null will be returned.
      java.lang.Integer getInteger​(java.lang.String key, java.lang.Integer defaultValue)
      get integer, if the value can not be got by the special key, the default value will be returned.
      java.lang.Long getLong​(java.lang.String key)
      get long, if the value can not be got by the special key, the null will be returned.
      java.lang.Long getLong​(java.lang.String key, java.lang.Long defaultValue)
      get long, if the value can not be got by the special key, the default value will be returned.
      java.lang.String getProperty​(java.lang.String key)
      get property, if the value can not be got by the special key, the null will be returned.
      java.lang.String getProperty​(java.lang.String key, java.lang.String defaultValue)
      get property, if the value can not be got by the special key, the default value will be returned.
    • 方法详细资料

      • getProperty

        java.lang.String getProperty​(java.lang.String key)
        get property, if the value can not be got by the special key, the null will be returned.
        参数:
        key - special key
        返回:
        string value or null.
      • getProperty

        java.lang.String getProperty​(java.lang.String key,
                                     java.lang.String defaultValue)
        get property, if the value can not be got by the special key, the default value will be returned.
        参数:
        key - special key
        defaultValue - default value
        返回:
        string value or default value.
      • getBoolean

        java.lang.Boolean getBoolean​(java.lang.String key)
        get boolean, if the value can not be got by the special key, the null will be returned.
        参数:
        key - special key
        返回:
        boolean value or null.
      • getBoolean

        java.lang.Boolean getBoolean​(java.lang.String key,
                                     java.lang.Boolean defaultValue)
        get boolean, if the value can not be got by the special key, the default value will be returned.
        参数:
        key - special key
        defaultValue - default value
        返回:
        boolean value or defaultValue.
      • getInteger

        java.lang.Integer getInteger​(java.lang.String key)
        get integer, if the value can not be got by the special key, the null will be returned.
        参数:
        key - special key
        返回:
        integer value or null
      • getInteger

        java.lang.Integer getInteger​(java.lang.String key,
                                     java.lang.Integer defaultValue)
        get integer, if the value can not be got by the special key, the default value will be returned.
        参数:
        key - special key
        defaultValue - default value
        返回:
        integer value or default value
      • getLong

        java.lang.Long getLong​(java.lang.String key)
        get long, if the value can not be got by the special key, the null will be returned.
        参数:
        key - special key
        返回:
        long value or null
      • getLong

        java.lang.Long getLong​(java.lang.String key,
                               java.lang.Long defaultValue)
        get long, if the value can not be got by the special key, the default value will be returned.
        参数:
        key - special key
        defaultValue - default value
        返回:
        long value or default value