Package io.micronaut.discovery.consul
Class ConsulConfiguration.ConsulRegistrationConfiguration
java.lang.Object
io.micronaut.discovery.registration.RegistrationConfiguration
io.micronaut.discovery.consul.ConsulConfiguration.ConsulRegistrationConfiguration
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
- Enclosing class:
- ConsulConfiguration
@ConfigurationProperties("registration")
public static class ConsulConfiguration.ConsulRegistrationConfiguration
extends io.micronaut.discovery.registration.RegistrationConfiguration
Configuration class for Consul client registration.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Configuration for the HTTP check. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The prefix to use for all Consul client registration settings.Fields inherited from class io.micronaut.discovery.registration.RegistrationConfiguration
DEFAULT_DEREGISTER, DEFAULT_ENABLED, DEFAULT_FAILFAST, DEFAULT_RETRY_COUNT, DEFAULT_RETRYDELAY_SECONDS
-
Constructor Summary
-
Method Summary
Methods inherited from class io.micronaut.discovery.registration.RegistrationConfiguration
getHealthPath, getIpAddr, getRetryCount, getRetryDelay, getTimeout, isDeregister, isEnabled, isFailFast, isPreferIpAddress, setDeregister, setEnabled, setFailFast, setHealthPath, setIpAddr, setPreferIpAddress, setRetryCount, setRetryDelay, setTimeout
-
Field Details
-
PREFIX
The prefix to use for all Consul client registration settings.- See Also:
-
-
Constructor Details
-
ConsulRegistrationConfiguration
public ConsulRegistrationConfiguration()
-
-
Method Details
-
getTags
- Returns:
- That tags to use for registering the service
-
setTags
- Parameters:
tags
- The tags for registering the service
-
getMeta
- Returns:
- That metadata to use for registering the service
-
setMeta
- Parameters:
meta
- The metadata for registering the service
-
getCheck
- Returns:
- The Consul client settings for HTTP check
-
setCheck
- Parameters:
check
- The Consul client settings for HTTP check
-
toString
-