Class CompositeHealthContributorConfiguration<I extends HealthIndicator,B>
java.lang.Object
org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration<HealthContributor,I,B>
org.springframework.boot.actuate.autoconfigure.health.CompositeHealthContributorConfiguration<I,B>
- Type Parameters:
I
- the health indicator typeB
- the bean type
- Direct Known Subclasses:
CouchbaseHealthContributorAutoConfiguration
,ElasticsearchRestHealthContributorAutoConfiguration
,HazelcastHealthContributorAutoConfiguration
,InfluxDbHealthContributorAutoConfiguration
,JmsHealthContributorAutoConfiguration
,LdapHealthContributorAutoConfiguration
,MailHealthContributorAutoConfiguration
,MongoHealthContributorAutoConfiguration
,RabbitHealthContributorAutoConfiguration
,RedisHealthContributorAutoConfiguration
public abstract class CompositeHealthContributorConfiguration<I extends HealthIndicator,B>
extends AbstractCompositeHealthContributorConfiguration<HealthContributor,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
ConstructorDescriptionCompositeHealthContributorConfiguration
(Function<B, I> indicatorFactory) Creates aCompositeHealthContributorConfiguration
that will use the givenindicatorFactory
to createHealthIndicator
instances. -
Method Summary
Modifier and TypeMethodDescriptionprotected final HealthContributor
createComposite
(Map<String, B> beans) Methods inherited from class org.springframework.boot.actuate.autoconfigure.health.AbstractCompositeHealthContributorConfiguration
createContributor, createIndicator
-
Constructor Details
-
CompositeHealthContributorConfiguration
Creates aCompositeHealthContributorConfiguration
that will use the givenindicatorFactory
to createHealthIndicator
instances.- Parameters:
indicatorFactory
- the function to create health indicator instances- Since:
- 3.0.0
-
-
Method Details
-
createComposite
- Specified by:
createComposite
in classAbstractCompositeHealthContributorConfiguration<HealthContributor,
I extends HealthIndicator, B>
-