Class ConsulRegistrationConfig


  • public class ConsulRegistrationConfig
    extends ConsulConfig
    Configuration class to specify various Consul settings
    • Constructor Detail

      • ConsulRegistrationConfig

        public ConsulRegistrationConfig()
    • 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