Class NopDynamicConfiguration

java.lang.Object
org.apache.dubbo.common.config.configcenter.nop.NopDynamicConfiguration
All Implemented Interfaces:
AutoCloseable, DynamicConfiguration, Configuration

@Deprecated public class NopDynamicConfiguration extends Object implements DynamicConfiguration
Deprecated.
The default extension of DynamicConfiguration. If user does not specify a config center, or specifies one that is not a valid extension, it will default to this one.
  • Constructor Details

    • NopDynamicConfiguration

      public NopDynamicConfiguration(URL url)
      Deprecated.
  • Method Details

    • getInternalProperty

      public Object getInternalProperty(String key)
      Deprecated.
      Specified by:
      getInternalProperty in interface Configuration
    • addListener

      public void addListener(String key, String group, ConfigurationListener listener)
      Deprecated.
      Description copied from interface: 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.
      Specified by:
      addListener in interface DynamicConfiguration
      Parameters:
      key - the key to represent a configuration
      group - the group where the key belongs to
      listener - configuration listener
    • removeListener

      public void removeListener(String key, String group, ConfigurationListener listener)
      Deprecated.
      Description copied from interface: DynamicConfiguration
      Stops one listener from listening to value changes in the specified key.
      Specified by:
      removeListener in interface DynamicConfiguration
      Parameters:
      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
      Deprecated.
      Description copied from interface: 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.
      Specified by:
      getConfig in interface DynamicConfiguration
      Parameters:
      key - the key to represent a configuration
      group - the group where the key belongs to
      timeout - timeout value for fetching the target config
      Returns:
      target configuration mapped to the given key and the given group, IllegalStateException will be thrown if timeout exceeds.
      Throws:
      IllegalStateException
    • publishConfig

      public boolean publishConfig(String key, String group, String content)
      Deprecated.
      Description copied from interface: DynamicConfiguration
      Publish Config mapped to the given key and the given group.
      Specified by:
      publishConfig in interface DynamicConfiguration
      Parameters:
      key - the key to represent a configuration
      group - the group where the key belongs to
      content - the content of configuration
      Returns:
      true if success, or false
      Since:
      2.7.5
    • close

      public void close() throws Exception
      Deprecated.
      Description copied from interface: DynamicConfiguration
      Close the configuration
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface DynamicConfiguration
      Throws:
      Exception