Class DataRedisHealthIndicator
java.lang.Object
org.springframework.boot.health.contributor.AbstractHealthIndicator
org.springframework.boot.data.redis.health.DataRedisHealthIndicator
- All Implemented Interfaces:
HealthContributor, HealthIndicator
Simple implementation of a
HealthIndicator returning status information for
Redis data stores.- Since:
- 4.0.0
- Author:
- Christian Dupuis, Richard Santana, Scott Frederick
-
Constructor Summary
ConstructorsConstructorDescriptionDataRedisHealthIndicator(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoHealthCheck(Health.Builder builder) Actual health check logic.Methods inherited from class AbstractHealthIndicator
healthMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HealthIndicator
health
-
Constructor Details
-
DataRedisHealthIndicator
public DataRedisHealthIndicator(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
-
-
Method Details
-
doHealthCheck
Description copied from class:AbstractHealthIndicatorActual health check logic.- Specified by:
doHealthCheckin classAbstractHealthIndicator- Parameters:
builder- theHealth.Builderto report health status and details- Throws:
Exception- anyExceptionthat should create aStatus.DOWNsystem status.
-