类 TreePathDynamicConfiguration

    • 字段详细资料

      • CONFIG_ROOT_PATH_PARAM_NAME

        public static final String CONFIG_ROOT_PATH_PARAM_NAME
        The parameter name of URL for the config root path
        另请参阅:
        常量字段值
      • CONFIG_BASE_PATH_PARAM_NAME

        public static final String CONFIG_BASE_PATH_PARAM_NAME
        The parameter name of URL for the config base path
        另请参阅:
        常量字段值
      • DEFAULT_CONFIG_BASE_PATH

        public static final String DEFAULT_CONFIG_BASE_PATH
        The default value of parameter of URL for the config base path
        另请参阅:
        常量字段值
    • 构造器详细资料

      • TreePathDynamicConfiguration

        public TreePathDynamicConfiguration​(URL url)
      • TreePathDynamicConfiguration

        public TreePathDynamicConfiguration​(String rootPath,
                                            String threadPoolPrefixName,
                                            int threadPoolSize,
                                            long keepAliveTime,
                                            String group,
                                            long timeout)
    • 方法详细资料

      • publishConfig

        public final boolean publishConfig​(String key,
                                           String group,
                                           String content)
        从接口复制的说明: DynamicConfiguration
        Publish Config mapped to the given key and the given group.
        参数:
        key - the key to represent a configuration
        group - the group where the key belongs to
        content - the content of configuration
        返回:
        true if success, or false
      • addListener

        public final void addListener​(String key,
                                      String group,
                                      ConfigurationListener listener)
        从接口复制的说明: DynamicConfiguration
        Register a configuration listener for a specified key The listener only works for service governance purpose, so the target group would always be the value user specifies at startup or 'dubbo' by default. This method will only register listener, which means it will not trigger a notification that contains the current value.
        指定者:
        addListener 在接口中 DynamicConfiguration
        覆盖:
        addListener 在类中 AbstractDynamicConfiguration
        参数:
        key - the key to represent a configuration
        group - the group where the key belongs to
        listener - configuration listener