Class ConsulRegistrationConfig
java.lang.Object
org.kiwiproject.registry.consul.config.ConsulConfig
org.kiwiproject.registry.consul.config.ConsulRegistrationConfig
Configuration class to specify various Consul settings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintNumber of seconds between Consul checking for healthintNumber 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 unhealthyMethods inherited from class org.kiwiproject.registry.consul.config.ConsulConfig
getMetadataTags, isIncludeNativeData, setIncludeNativeData, setMetadataTags
-
Constructor Details
-
ConsulRegistrationConfig
public ConsulRegistrationConfig()
-
-
Method Details
-
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
-