Class HealthMonitor.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • delay

        public HealthMonitor.Builder delay​(int delay)
        Required. The minimum number of seconds to wait before executing the health monitor. Must be a number between 1 and 3600.
      • timeout

        public HealthMonitor.Builder timeout​(int timeout)
        Required. Maximum number of seconds to wait for a connection to be established before timing out. Must be a number between 1 and 300.
      • attemptsBeforeDeactivation

        public HealthMonitor.Builder attemptsBeforeDeactivation​(int attemptsBeforeDeactivation)
        Required. Number of permissible monitor failures before removing a node from rotation. Must be a number between 1 and 10.
      • bodyRegex

        public HealthMonitor.Builder bodyRegex​(String bodyRegex)
        Required (if using HTTP/S). A regular expression that will be used to evaluate the contents of the body of the response.
      • statusRegex

        public HealthMonitor.Builder statusRegex​(String statusRegex)
        Required (if using HTTP/S). A regular expression that will be used to evaluate the HTTP status code returned in the response.
      • path

        public HealthMonitor.Builder path​(String path)
        Required (if using HTTP/S). The HTTP path that will be used in the sample request.
      • hostHeader

        public HealthMonitor.Builder hostHeader​(String hostHeader)
        Optional (if using HTTP/S). The name of a host for which the health monitors will check.