Interface CompositeHealthContributor
- All Superinterfaces:
HealthContributor, HealthContributors, Iterable<HealthContributors.Entry>
public non-sealed interface CompositeHealthContributor
extends HealthContributor, HealthContributors
A
HealthContributor that is composed of other HealthContributor
instances.- Since:
- 4.0.0
- Author:
- Phillip Webb, Guirong Hu
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface HealthContributors
HealthContributors.Entry -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic CompositeHealthContributorfromMap(Map<String, ? extends HealthContributor> map) Factory method that will create aCompositeHealthContributorfrom the specified map.static <V> CompositeHealthContributorfromMap(Map<String, V> map, Function<V, ? extends HealthContributor> valueAdapter) Factory method that will create aCompositeHealthContributorfrom the specified map.Methods inherited from interface HealthContributors
getContributor, iterator, streamMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
fromMap
Factory method that will create aCompositeHealthContributorfrom the specified map.- Parameters:
map- the source map- Returns:
- a composite health contributor instance
-
fromMap
static <V> CompositeHealthContributor fromMap(Map<String, V> map, Function<V, ? extends HealthContributor> valueAdapter) Factory method that will create aCompositeHealthContributorfrom the specified map.- Type Parameters:
V- the value type- Parameters:
map- the source mapvalueAdapter- function used to adapt the map value- Returns:
- a composite health contributor instance
-