Class DataElasticsearchReactiveHealthContributorAutoConfiguration
java.lang.Object
org.springframework.boot.health.autoconfigure.contributor.CompositeReactiveHealthContributorConfiguration<DataElasticsearchReactiveHealthIndicator, org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchClient>
org.springframework.boot.data.elasticsearch.autoconfigure.health.DataElasticsearchReactiveHealthContributorAutoConfiguration
@AutoConfiguration(after=DataElasticsearchAutoConfiguration.class)
@ConditionalOnClass({org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchClient.class,reactor.core.publisher.Flux.class,DataElasticsearchReactiveHealthIndicator.class,ConditionalOnEnabledHealthIndicator.class})
@ConditionalOnBean(org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchClient.class)
@ConditionalOnEnabledHealthIndicator("elasticsearch")
public final class DataElasticsearchReactiveHealthContributorAutoConfiguration
extends CompositeReactiveHealthContributorConfiguration<DataElasticsearchReactiveHealthIndicator, org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchClient>
Auto-configuration for
DataElasticsearchReactiveHealthIndicator using the
ReactiveElasticsearchClient.- Since:
- 4.0.0
- Author:
- Aleksander Lech
-
Method Summary
Modifier and TypeMethodDescriptionprotected final ReactiveHealthContributorcreateContributor(Map<String, org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchClient> beans) protected final ReactiveHealthContributorcreateContributor(ConfigurableListableBeanFactory beanFactory, Class<org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchClient> beanType) Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.protected DataElasticsearchReactiveHealthIndicatorcreateIndicator(org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchClient bean) Methods inherited from class CompositeReactiveHealthContributorConfiguration
createComposite
-
Method Details
-
createContributor
protected final ReactiveHealthContributor createContributor(ConfigurableListableBeanFactory beanFactory, Class<org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchClient> beanType) Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.- Parameters:
beanFactory- the bean factory from which the beans are retrievedbeanType- the type of the beans that are retrieved- Returns:
- the contributor
-
createContributor
protected final ReactiveHealthContributor createContributor(Map<String, org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchClient> beans) -
createIndicator
protected DataElasticsearchReactiveHealthIndicator createIndicator(org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchClient bean)
-