类 NopDynamicConfiguration

    • 构造器详细资料

      • NopDynamicConfiguration

        public NopDynamicConfiguration​(URL url)
        已过时。
    • 方法详细资料

      • addListener

        public 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
        参数:
        key - the key to represent a configuration
        group - the group where the key belongs to
        listener - configuration listener
      • getConfig

        public String getConfig​(String key,
                                String group,
                                long timeout)
                         throws IllegalStateException
        已过时。
        从接口复制的说明: DynamicConfiguration
        Get the configuration mapped to the given key and the given group. If the configuration fails to fetch after timeout exceeds, IllegalStateException will be thrown.
        指定者:
        getConfig 在接口中 DynamicConfiguration
        参数:
        key - the key to represent a configuration
        group - the group where the key belongs to
        timeout - timeout value for fetching the target config
        返回:
        target configuration mapped to the given key and the given group, IllegalStateException will be thrown if timeout exceeds.
        抛出:
        IllegalStateException
      • publishConfig

        public boolean publishConfig​(String key,
                                     String group,
                                     String content)
        已过时。
        从接口复制的说明: DynamicConfiguration
        Publish Config mapped to the given key and the given group.
        指定者:
        publishConfig 在接口中 DynamicConfiguration
        参数:
        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
        从以下版本开始:
        2.7.5