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 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