Class ElasticsearchRestHealthContributorAutoConfiguration

java.lang.Object
org.springframework.boot.health.autoconfigure.contributor.CompositeHealthContributorConfiguration<ElasticsearchRestClientHealthIndicator, co.elastic.clients.transport.rest5_client.low_level.Rest5Client>
org.springframework.boot.elasticsearch.autoconfigure.health.ElasticsearchRestHealthContributorAutoConfiguration

@AutoConfiguration(after=ElasticsearchRestClientAutoConfiguration.class) @ConditionalOnClass({co.elastic.clients.transport.rest5_client.low_level.Rest5Client.class,ConditionalOnEnabledHealthIndicator.class}) @ConditionalOnBean(co.elastic.clients.transport.rest5_client.low_level.Rest5Client.class) @ConditionalOnEnabledHealthIndicator("elasticsearch") public final class ElasticsearchRestHealthContributorAutoConfiguration extends CompositeHealthContributorConfiguration<ElasticsearchRestClientHealthIndicator, co.elastic.clients.transport.rest5_client.low_level.Rest5Client>
Since:
4.0.0
Author:
Artsiom Yudovin
  • Method Details

    • createContributor

      protected final HealthContributor createContributor(ConfigurableListableBeanFactory beanFactory, Class<co.elastic.clients.transport.rest5_client.low_level.Rest5Client> beanType)
      Creates a composite contributor from the beans of the given beanType retrieved from the given beanFactory.
      Parameters:
      beanFactory - the bean factory from which the beans are retrieved
      beanType - the type of the beans that are retrieved
      Returns:
      the contributor
    • createContributor

      protected final HealthContributor createContributor(Map<String, co.elastic.clients.transport.rest5_client.low_level.Rest5Client> beans)
    • createIndicator

      protected ElasticsearchRestClientHealthIndicator createIndicator(co.elastic.clients.transport.rest5_client.low_level.Rest5Client bean)