Package io.micronaut.discovery.consul
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 inherited from class io.micronaut.discovery.config.ConfigDiscoveryConfiguration
DEFAULT_ENABLED, DEFAULT_PATH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe 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
-
Field Details
-
PREFIX
The full prefix for this configuration.- See Also:
-
-
Constructor Details
-
ConsulConfigDiscoveryConfiguration
public ConsulConfigDiscoveryConfiguration()
-
-
Method Details
-
getDatacenter
The data center to use to read configuration.- Returns:
- The data center name
-
setDatacenter
- Parameters:
datacenter
- The datacenter
-