public interface HealthCheckStrategy
extends java.io.Closeable
| Modifier and Type | Interface and Description |
|---|---|
static class |
HealthCheckStrategy.Config |
| Modifier and Type | Method and Description |
|---|---|
default void |
close()
Close any resources used by the health check strategy.
|
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.
|
int getInterval()
int getTimeout()
HealthStatus doHealthCheck(Endpoint endpoint)
endpoint - the endpoint to checkdefault void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableint getNumProbes()
ProbingPolicy getPolicy()
int getDelayInBetweenProbes()
Copyright © 2025. All rights reserved.