@Experimental public enum HealthStatus extends Enum<HealthStatus>
This status reflects the results from active health checks performed by the health check service. Health checks periodically probes endpoints to verify their availability and responsiveness, updating this status accordingly.
Used by the RedisDatabaseImpl to track and report health check results from the health check API.
| Enum Constant and Description |
|---|
HEALTHY
The endpoint is healthy and operating normally according to health check probes.
|
UNHEALTHY
The endpoint is unhealthy according to health check probes.
|
UNKNOWN
Health status is unknown.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isHealthy() |
static HealthStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HealthStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HealthStatus UNKNOWN
public static final HealthStatus HEALTHY
public static final HealthStatus UNHEALTHY
public static HealthStatus[] values()
for (HealthStatus c : HealthStatus.values()) System.out.println(c);
public static HealthStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isHealthy()
Copyright © 2026 lettuce.io. All rights reserved.