Class DataElasticsearchReactiveHealthIndicator
java.lang.Object
org.springframework.boot.health.contributor.AbstractReactiveHealthIndicator
org.springframework.boot.data.elasticsearch.health.DataElasticsearchReactiveHealthIndicator
- All Implemented Interfaces:
ReactiveHealthContributor, ReactiveHealthIndicator
HealthIndicator for an Elasticsearch cluster using a
ReactiveElasticsearchClient.- Since:
- 4.0.0
- Author:
- Brian Clozel, Aleksander Lech, Scott Frederick
-
Constructor Summary
ConstructorsConstructorDescriptionDataElasticsearchReactiveHealthIndicator(org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchClient client) -
Method Summary
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<Health> doHealthCheck(Health.Builder builder) Actual health check logic.Methods inherited from class AbstractReactiveHealthIndicator
healthMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReactiveHealthIndicator
asHealthContributor, health
-
Constructor Details
-
DataElasticsearchReactiveHealthIndicator
public DataElasticsearchReactiveHealthIndicator(org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchClient client)
-
-
Method Details
-
doHealthCheck
Description copied from class:AbstractReactiveHealthIndicatorActual health check logic. If an error occurs in the pipeline, it will be handled automatically.- Specified by:
doHealthCheckin classAbstractReactiveHealthIndicator- Parameters:
builder- theHealth.Builderto report health status and details- Returns:
- a
Monothat provides theHealth
-