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