Class DataRedisReactiveHealthIndicator
java.lang.Object
org.springframework.boot.health.contributor.AbstractReactiveHealthIndicator
org.springframework.boot.data.redis.health.DataRedisReactiveHealthIndicator
- All Implemented Interfaces:
ReactiveHealthContributor
,ReactiveHealthIndicator
A
ReactiveHealthIndicator
for Redis.- Since:
- 4.0.0
- Author:
- Stephane Nicoll, Mark Paluch, Artsiom Yudovin, Scott Frederick
-
Constructor Summary
ConstructorsConstructorDescriptionDataRedisReactiveHealthIndicator
(org.springframework.data.redis.connection.ReactiveRedisConnectionFactory connectionFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono
<Health> doHealthCheck
(Health.Builder builder) Actual health check logic.Methods inherited from class org.springframework.boot.health.contributor.AbstractReactiveHealthIndicator
health
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.boot.health.contributor.ReactiveHealthIndicator
asHealthContributor, health
-
Constructor Details
-
DataRedisReactiveHealthIndicator
public DataRedisReactiveHealthIndicator(org.springframework.data.redis.connection.ReactiveRedisConnectionFactory connectionFactory)
-
-
Method Details
-
doHealthCheck
Description copied from class:AbstractReactiveHealthIndicator
Actual health check logic. If an error occurs in the pipeline, it will be handled automatically.- Specified by:
doHealthCheck
in classAbstractReactiveHealthIndicator
- Parameters:
builder
- theHealth.Builder
to report health status and details- Returns:
- a
Mono
that provides theHealth
-