Class ConfigDiscoveryConfiguration

java.lang.Object
io.micronaut.discovery.config.ConfigDiscoveryConfiguration
All Implemented Interfaces:
Toggleable

public abstract class ConfigDiscoveryConfiguration extends Object implements Toggleable
Abstract class for common configuration discovery settings.
Since:
1.0
Author:
graemerocher
  • Field Details

  • Constructor Details

    • ConfigDiscoveryConfiguration

      public ConfigDiscoveryConfiguration()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface Toggleable
      Returns:
      Is distributed configuration enabled. True if it is.
    • setEnabled

      public void setEnabled(boolean enabled)
      Default value (true).
      Parameters:
      enabled - Enable the distributed configuration
    • getPath

      public Optional<String> getPath()
      Returns:
      The path where the configuration is stored
    • setPath

      public void setPath(String path)
      Parameters:
      path - The path to store the configuration
    • getFormat

      Returns:
      The configuration format
    • setFormat

      public void setFormat(ConfigDiscoveryConfiguration.Format format)
      Parameters:
      format - The configuration format