Class ConsulRegistrationConfig
- java.lang.Object
-
- org.kiwiproject.registry.consul.config.ConsulConfig
-
- org.kiwiproject.registry.consul.config.ConsulRegistrationConfig
-
public class ConsulRegistrationConfig extends ConsulConfig
Configuration class to specify various Consul settings
-
-
Constructor Summary
Constructors Constructor Description ConsulRegistrationConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCheckIntervalInSeconds()Number of seconds between Consul checking for healthintgetDeregisterIntervalInMinutes()Number of seconds before Consul will deregister a service when unhealthyvoidsetCheckIntervalInSeconds(int checkIntervalInSeconds)Number of seconds between Consul checking for healthvoidsetDeregisterIntervalInMinutes(int deregisterIntervalInMinutes)Number of seconds before Consul will deregister a service when unhealthy-
Methods inherited from class org.kiwiproject.registry.consul.config.ConsulConfig
getDomainOverride, getMetadataTags, isIncludeNativeData, setDomainOverride, setIncludeNativeData, setMetadataTags
-
-
-
-
Method Detail
-
getCheckIntervalInSeconds
public int getCheckIntervalInSeconds()
Number of seconds between Consul checking for health
-
getDeregisterIntervalInMinutes
public int getDeregisterIntervalInMinutes()
Number of seconds before Consul will deregister a service when unhealthy
-
setCheckIntervalInSeconds
public void setCheckIntervalInSeconds(int checkIntervalInSeconds)
Number of seconds between Consul checking for health
-
setDeregisterIntervalInMinutes
public void setDeregisterIntervalInMinutes(int deregisterIntervalInMinutes)
Number of seconds before Consul will deregister a service when unhealthy
-
-