@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=org.elasticsearch.client.RestClient.class) @ConditionalOnBean(value=org.elasticsearch.client.RestClient.class) @ConditionalOnEnabledHealthIndicator(value="elasticsearch") @AutoConfigureAfter(value=ElasticsearchRestClientAutoConfiguration.class) public class ElasticSearchRestHealthContributorAutoConfiguration extends CompositeHealthContributorConfiguration<ElasticsearchRestHealthIndicator,org.elasticsearch.client.RestClient>
Constructor and Description |
---|
ElasticSearchRestHealthContributorAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
HealthContributor |
elasticsearchHealthContributor(Map<String,org.elasticsearch.client.RestClient> clients) |
createComposite
createContributor, createIndicator
public ElasticSearchRestHealthContributorAutoConfiguration()
@Bean @ConditionalOnMissingBean(name={"elasticsearchHealthIndicator","elasticsearchHealthContributor"}) public HealthContributor elasticsearchHealthContributor(Map<String,org.elasticsearch.client.RestClient> clients)