Interface CompositeReactiveHealthContributor
- All Superinterfaces:
Iterable<NamedContributor<ReactiveHealthContributor>>,NamedContributors<ReactiveHealthContributor>,ReactiveHealthContributor
public interface CompositeReactiveHealthContributor
extends ReactiveHealthContributor, NamedContributors<ReactiveHealthContributor>
A
ReactiveHealthContributor that is composed of other
ReactiveHealthContributor instances.- Since:
- 2.2.0
- Author:
- Phillip Webb
- See Also:
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionfromMap(Map<String, ? extends ReactiveHealthContributor> map) Factory method that will create aCompositeReactiveHealthContributorfrom the specified map.static <V> CompositeReactiveHealthContributorfromMap(Map<String, V> map, Function<V, ? extends ReactiveHealthContributor> valueAdapter) Factory method that will create aCompositeReactiveHealthContributorfrom the specified map.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.springframework.boot.actuate.health.NamedContributors
getContributor, stream
-
Method Details
-
fromMap
static CompositeReactiveHealthContributor fromMap(Map<String, ? extends ReactiveHealthContributor> map) Factory method that will create aCompositeReactiveHealthContributorfrom the specified map.- Parameters:
map- the source map- Returns:
- a composite health contributor instance
-
fromMap
static <V> CompositeReactiveHealthContributor fromMap(Map<String, V> map, Function<V, ? extends ReactiveHealthContributor> valueAdapter) Factory method that will create aCompositeReactiveHealthContributorfrom 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
-