Class CompositeReactiveHealthContributorConfiguration<I extends ReactiveHealthIndicator,B>
java.lang.Object
org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration<ReactiveHealthContributor,I,B>
org.springframework.boot.actuate.autoconfigure.health.CompositeReactiveHealthContributorConfiguration<I,B>
- Type Parameters:
I
- the health indicator typeB
- the bean type
- Direct Known Subclasses:
ConnectionFactoryHealthContributorAutoConfiguration
,CouchbaseReactiveHealthContributorAutoConfiguration
,ElasticsearchReactiveHealthContributorAutoConfiguration
,MongoReactiveHealthContributorAutoConfiguration
,RedisReactiveHealthContributorAutoConfiguration
public abstract class CompositeReactiveHealthContributorConfiguration<I extends ReactiveHealthIndicator,B>
extends AbstractCompositeHealthContributorConfiguration<ReactiveHealthContributor,I,B>
Base class for health contributor configurations that can combine source beans into a
composite.
- Since:
- 2.2.0
- Author:
- Stephane Nicoll, Phillip Webb
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.CompositeReactiveHealthContributorConfiguration
(Function<B, I> indicatorFactory) Creates aCompositeReactiveHealthContributorConfiguration
that will use the givenindicatorFactory
to createReactiveHealthIndicator
instances. -
Method Summary
Modifier and TypeMethodDescriptionprotected final ReactiveHealthContributor
createComposite
(Map<String, B> beans) Methods inherited from class org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration
createContributor, createIndicator
-
Constructor Details
-
CompositeReactiveHealthContributorConfiguration
@Deprecated(since="3.0.0", forRemoval=true) public CompositeReactiveHealthContributorConfiguration()Deprecated, for removal: This API element is subject to removal in a future version.since 3.0.0 in favor ofCompositeReactiveHealthContributorConfiguration(Function)
Creates aCompositeReactiveHealthContributorConfiguration
that will use reflection to createReactiveHealthIndicator
instances. -
CompositeReactiveHealthContributorConfiguration
Creates aCompositeReactiveHealthContributorConfiguration
that will use the givenindicatorFactory
to createReactiveHealthIndicator
instances.- Parameters:
indicatorFactory
- the function to create health indicator instances- Since:
- 3.0.0
-
-
Method Details
-
createComposite
- Specified by:
createComposite
in classAbstractCompositeHealthContributorConfiguration<ReactiveHealthContributor,
I extends ReactiveHealthIndicator, B>
-
CompositeReactiveHealthContributorConfiguration(Function)