public static final class HttpHealthCheckOptions.Builder
extends java.lang.Object
HttpHealthCheckOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HttpHealthCheckOptions |
build()
Builds the configured instance.
|
HttpHealthCheckOptions.Builder |
healthyThreshold(java.lang.Number healthyThreshold)
Sets the value of
HttpHealthCheckOptions.getHealthyThreshold() |
HttpHealthCheckOptions.Builder |
interval(Duration interval)
Sets the value of
HttpHealthCheckOptions.getInterval() |
HttpHealthCheckOptions.Builder |
path(java.lang.String path)
Sets the value of
HttpHealthCheckOptions.getPath() |
HttpHealthCheckOptions.Builder |
timeout(Duration timeout)
Sets the value of
HttpHealthCheckOptions.getTimeout() |
HttpHealthCheckOptions.Builder |
unhealthyThreshold(java.lang.Number unhealthyThreshold)
Sets the value of
HttpHealthCheckOptions.getUnhealthyThreshold() |
public HttpHealthCheckOptions.Builder healthyThreshold(java.lang.Number healthyThreshold)
HttpHealthCheckOptions.getHealthyThreshold()
healthyThreshold
- The number of consecutive successful health checks that must occur before declaring listener healthy.this
public HttpHealthCheckOptions.Builder interval(Duration interval)
HttpHealthCheckOptions.getInterval()
interval
- The time period between each health check execution.this
public HttpHealthCheckOptions.Builder path(java.lang.String path)
HttpHealthCheckOptions.getPath()
path
- The destination path for the health check request.this
public HttpHealthCheckOptions.Builder timeout(Duration timeout)
HttpHealthCheckOptions.getTimeout()
timeout
- The amount of time to wait when receiving a response from the health check.this
public HttpHealthCheckOptions.Builder unhealthyThreshold(java.lang.Number unhealthyThreshold)
HttpHealthCheckOptions.getUnhealthyThreshold()
unhealthyThreshold
- The number of consecutive failed health checks that must occur before declaring a listener unhealthy.this
public HttpHealthCheckOptions build()
HttpHealthCheckOptions
java.lang.NullPointerException
- if any required attribute was not provided