Class DiscoveryCompositeHealthContributor
- java.lang.Object
-
- org.springframework.cloud.client.discovery.health.DiscoveryCompositeHealthContributor
-
- All Implemented Interfaces:
Iterable<org.springframework.boot.actuate.health.NamedContributor<org.springframework.boot.actuate.health.HealthContributor>>,org.springframework.boot.actuate.health.CompositeHealthContributor,org.springframework.boot.actuate.health.HealthContributor,org.springframework.boot.actuate.health.NamedContributors<org.springframework.boot.actuate.health.HealthContributor>
public class DiscoveryCompositeHealthContributor extends Object implements org.springframework.boot.actuate.health.CompositeHealthContributor
Adapter that converts a collection ofDiscoveryHealthIndicatorbeans into aCompositeHealthContributor.- Since:
- 2.2.0
- Author:
- Phillip Webb
-
-
Constructor Summary
Constructors Constructor Description DiscoveryCompositeHealthContributor(Collection<DiscoveryHealthIndicator> indicators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.boot.actuate.health.HealthContributorgetContributor(String name)Map<String,DiscoveryHealthIndicator>getIndicators()Iterator<org.springframework.boot.actuate.health.NamedContributor<org.springframework.boot.actuate.health.HealthContributor>>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
DiscoveryCompositeHealthContributor
public DiscoveryCompositeHealthContributor(Collection<DiscoveryHealthIndicator> indicators)
-
-
Method Detail
-
getContributor
public org.springframework.boot.actuate.health.HealthContributor getContributor(String name)
- Specified by:
getContributorin interfaceorg.springframework.boot.actuate.health.NamedContributors<org.springframework.boot.actuate.health.HealthContributor>
-
iterator
public Iterator<org.springframework.boot.actuate.health.NamedContributor<org.springframework.boot.actuate.health.HealthContributor>> iterator()
-
getIndicators
public Map<String,DiscoveryHealthIndicator> getIndicators()
-
-