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