Interface HealthCheckConfig.Builder

  • Method Details

    • port

      The port to use for health check probes. Valid range is 80 to 65535.

      Parameters:
      port - The port to use for health check probes. Valid range is 80 to 65535.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • path

      The destination path for the health check request. Must start with /.

      Parameters:
      path - The destination path for the health check request. Must start with /.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • protocol

      HealthCheckConfig.Builder protocol(String protocol)

      The protocol to use for health check probes.

      Parameters:
      protocol - The protocol to use for health check probes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • protocol

      HealthCheckConfig.Builder protocol(Protocol protocol)

      The protocol to use for health check probes.

      Parameters:
      protocol - The protocol to use for health check probes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • timeoutMs

      HealthCheckConfig.Builder timeoutMs(Integer timeoutMs)

      The timeout for each health check probe, in milliseconds. Valid range is 100 to 5000.

      Parameters:
      timeoutMs - The timeout for each health check probe, in milliseconds. Valid range is 100 to 5000.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • intervalSeconds

      HealthCheckConfig.Builder intervalSeconds(Integer intervalSeconds)

      The interval between health check probes, in seconds. Valid range is 5 to 60.

      Parameters:
      intervalSeconds - The interval between health check probes, in seconds. Valid range is 5 to 60.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statusCodeMatcher

      HealthCheckConfig.Builder statusCodeMatcher(String statusCodeMatcher)

      The expected HTTP status code or status code pattern from healthy instances. Supports a single code (for example, 200), a range (for example, 200-299), or a comma-separated list (for example, 200,204).

      Parameters:
      statusCodeMatcher - The expected HTTP status code or status code pattern from healthy instances. Supports a single code (for example, 200), a range (for example, 200-299), or a comma-separated list (for example, 200,204).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • healthyThresholdCount

      HealthCheckConfig.Builder healthyThresholdCount(Integer healthyThresholdCount)

      The number of consecutive successful health checks required before an instance is considered healthy. Valid range is 2 to 10.

      Parameters:
      healthyThresholdCount - The number of consecutive successful health checks required before an instance is considered healthy. Valid range is 2 to 10.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unhealthyThresholdCount

      HealthCheckConfig.Builder unhealthyThresholdCount(Integer unhealthyThresholdCount)

      The number of consecutive failed health checks required before an instance is considered unhealthy. Valid range is 2 to 10.

      Parameters:
      unhealthyThresholdCount - The number of consecutive failed health checks required before an instance is considered unhealthy. Valid range is 2 to 10.
      Returns:
      Returns a reference to this object so that method calls can be chained together.