public static interface HealthCheckPolicy.Builder extends SdkPojo, CopyableBuilder<HealthCheckPolicy.Builder,HealthCheckPolicy>
| Modifier and Type | Method and Description |
|---|---|
HealthCheckPolicy.Builder |
healthyThreshold(Integer healthyThreshold)
The number of consecutive successful health checks that must occur before declaring listener healthy.
|
HealthCheckPolicy.Builder |
intervalMillis(Long intervalMillis)
The time period in milliseconds between each health check execution.
|
HealthCheckPolicy.Builder |
path(String path)
The destination path for the health check request.
|
HealthCheckPolicy.Builder |
port(Integer port)
The destination port for the health check request.
|
HealthCheckPolicy.Builder |
protocol(PortProtocol protocol)
The protocol for the health check request.
|
HealthCheckPolicy.Builder |
protocol(String protocol)
The protocol for the health check request.
|
HealthCheckPolicy.Builder |
timeoutMillis(Long timeoutMillis)
The amount of time to wait when receiving a response from the health check, in milliseconds.
|
HealthCheckPolicy.Builder |
unhealthyThreshold(Integer unhealthyThreshold)
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildHealthCheckPolicy.Builder healthyThreshold(Integer healthyThreshold)
The number of consecutive successful health checks that must occur before declaring listener healthy.
healthyThreshold - The number of consecutive successful health checks that must occur before declaring listener healthy.HealthCheckPolicy.Builder intervalMillis(Long intervalMillis)
The time period in milliseconds between each health check execution.
intervalMillis - The time period in milliseconds between each health check execution.HealthCheckPolicy.Builder path(String path)
The destination path for the health check request. This value is only used if the specified protocol is HTTP or HTTP/2. For any other protocol, this value is ignored.
path - The destination path for the health check request. This value is only used if the specified protocol
is HTTP or HTTP/2. For any other protocol, this value is ignored.HealthCheckPolicy.Builder port(Integer port)
The destination port for the health check request. This port must match the port defined in the PortMapping for the listener.
port - The destination port for the health check request. This port must match the port defined in the
PortMapping for the listener.HealthCheckPolicy.Builder protocol(String protocol)
The protocol for the health check request. If you specify grpc, then your service must conform
to the GRPC Health Checking
Protocol.
protocol - The protocol for the health check request. If you specify grpc, then your service must
conform to the GRPC Health
Checking Protocol.PortProtocol,
PortProtocolHealthCheckPolicy.Builder protocol(PortProtocol protocol)
The protocol for the health check request. If you specify grpc, then your service must conform
to the GRPC Health Checking
Protocol.
protocol - The protocol for the health check request. If you specify grpc, then your service must
conform to the GRPC Health
Checking Protocol.PortProtocol,
PortProtocolHealthCheckPolicy.Builder timeoutMillis(Long timeoutMillis)
The amount of time to wait when receiving a response from the health check, in milliseconds.
timeoutMillis - The amount of time to wait when receiving a response from the health check, in milliseconds.HealthCheckPolicy.Builder unhealthyThreshold(Integer unhealthyThreshold)
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
unhealthyThreshold - The number of consecutive failed health checks that must occur before declaring a virtual node
unhealthy.Copyright © 2021. All rights reserved.