public class LagAwareStrategy extends java.lang.Object implements HealthCheckStrategy
| Modifier and Type | Class and Description |
|---|---|
static class |
LagAwareStrategy.Config |
| Constructor and Description |
|---|
LagAwareStrategy(LagAwareStrategy.Config config) |
| Modifier and Type | Method and Description |
|---|---|
HealthStatus |
doHealthCheck(Endpoint endpoint)
Perform the health check for the given endpoint.
|
int |
getDelayInBetweenProbes()
Get the delay (in milliseconds) between retries for failed health checks.
|
int |
getInterval()
Get the interval (in milliseconds) between health checks.
|
int |
getNumProbes()
Get the number of probes for health checks to repeat.
|
ProbingPolicy |
getPolicy()
Get the policy for health checks.
|
int |
getTimeout()
Get the timeout (in milliseconds) for a health check.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic LagAwareStrategy(LagAwareStrategy.Config config)
public int getInterval()
HealthCheckStrategygetInterval in interface HealthCheckStrategypublic int getTimeout()
HealthCheckStrategygetTimeout in interface HealthCheckStrategypublic int getNumProbes()
HealthCheckStrategygetNumProbes in interface HealthCheckStrategypublic ProbingPolicy getPolicy()
HealthCheckStrategygetPolicy in interface HealthCheckStrategypublic int getDelayInBetweenProbes()
HealthCheckStrategygetDelayInBetweenProbes in interface HealthCheckStrategypublic HealthStatus doHealthCheck(Endpoint endpoint)
HealthCheckStrategydoHealthCheck in interface HealthCheckStrategyendpoint - the endpoint to checkCopyright © 2025. All rights reserved.