Class MongoReactiveHealthContributorAutoConfiguration
java.lang.Object
org.springframework.boot.health.autoconfigure.contributor.CompositeReactiveHealthContributorConfiguration<MongoReactiveHealthIndicator, com.mongodb.reactivestreams.client.MongoClient>
org.springframework.boot.mongodb.autoconfigure.health.MongoReactiveHealthContributorAutoConfiguration
@AutoConfiguration(after=MongoReactiveAutoConfiguration.class)
@ConditionalOnClass({com.mongodb.reactivestreams.client.MongoClient.class,reactor.core.publisher.Flux.class,MongoReactiveHealthIndicator.class,ConditionalOnEnabledHealthIndicator.class})
@ConditionalOnBean(com.mongodb.reactivestreams.client.MongoClient.class)
@ConditionalOnEnabledHealthIndicator("mongodb")
public final class MongoReactiveHealthContributorAutoConfiguration
extends CompositeReactiveHealthContributorConfiguration<MongoReactiveHealthIndicator, com.mongodb.reactivestreams.client.MongoClient>
- Since:
- 4.0.0
- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionprotected final ReactiveHealthContributorcreateContributor(Map<String, com.mongodb.reactivestreams.client.MongoClient> beans) protected final ReactiveHealthContributorcreateContributor(ConfigurableListableBeanFactory beanFactory, Class<com.mongodb.reactivestreams.client.MongoClient> beanType) Creates a composite contributor from the beans of the givenbeanTyperetrieved from the givenbeanFactory.protected MongoReactiveHealthIndicatorcreateIndicator(com.mongodb.reactivestreams.client.MongoClient bean) Methods inherited from class CompositeReactiveHealthContributorConfiguration
createComposite
-
Method Details
-
createContributor
protected final ReactiveHealthContributor createContributor(ConfigurableListableBeanFactory beanFactory, Class<com.mongodb.reactivestreams.client.MongoClient> 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, com.mongodb.reactivestreams.client.MongoClient> beans) -
createIndicator
protected MongoReactiveHealthIndicator createIndicator(com.mongodb.reactivestreams.client.MongoClient bean)
-