@Experimental public class AbstractHealthCheckStrategy extends Object implements HealthCheckStrategy
This class provides a basic implementation of the HealthCheckStrategy interface. It can be extended to implement
custom health check strategies.
HealthCheckStrategy.Config| Constructor and Description |
|---|
AbstractHealthCheckStrategy(HealthCheckStrategy.Config config) |
| Modifier and Type | Method and Description |
|---|---|
HealthStatus |
doHealthCheck(RedisURI endpoint)
Implement custom health check logic
|
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 AbstractHealthCheckStrategy(HealthCheckStrategy.Config config)
public HealthStatus doHealthCheck(RedisURI endpoint)
doHealthCheck in interface HealthCheckStrategyendpoint - the endpoint to checkpublic int getInterval()
HealthCheckStrategygetInterval in interface HealthCheckStrategypublic int getTimeout()
HealthCheckStrategygetTimeout in interface HealthCheckStrategypublic int getNumProbes()
HealthCheckStrategygetNumProbes in interface HealthCheckStrategypublic int getDelayInBetweenProbes()
HealthCheckStrategygetDelayInBetweenProbes in interface HealthCheckStrategypublic ProbingPolicy getPolicy()
HealthCheckStrategygetPolicy in interface HealthCheckStrategyCopyright © 2026 lettuce.io. All rights reserved.