Class ConsulConfiguration.ConsulConfigDiscoveryConfiguration

java.lang.Object
io.micronaut.discovery.config.ConfigDiscoveryConfiguration
io.micronaut.discovery.consul.ConsulConfiguration.ConsulConfigDiscoveryConfiguration
All Implemented Interfaces:
io.micronaut.core.util.Toggleable
Enclosing class:
ConsulConfiguration

@ConfigurationProperties("config") @Requires(property="consul.client") public static class ConsulConfiguration.ConsulConfigDiscoveryConfiguration extends io.micronaut.discovery.config.ConfigDiscoveryConfiguration
Configuration class for Consul client config.
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.micronaut.discovery.config.ConfigDiscoveryConfiguration

    io.micronaut.discovery.config.ConfigDiscoveryConfiguration.Format
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The full prefix for this configuration.

    Fields inherited from class io.micronaut.discovery.config.ConfigDiscoveryConfiguration

    DEFAULT_ENABLED, DEFAULT_PATH
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The data center to use to read configuration.
    void
    setDatacenter(String datacenter)
     

    Methods inherited from class io.micronaut.discovery.config.ConfigDiscoveryConfiguration

    getFormat, getPath, isEnabled, setEnabled, setFormat, setPath

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ConsulConfigDiscoveryConfiguration

      public ConsulConfigDiscoveryConfiguration()
  • Method Details

    • getDatacenter

      public Optional<String> getDatacenter()
      The data center to use to read configuration.
      Returns:
      The data center name
    • setDatacenter

      public void setDatacenter(String datacenter)
      Parameters:
      datacenter - The datacenter