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
Modifier and TypeMethodDescriptionfromMap
(Map<String, ? extends ReactiveHealthContributor> map) Factory method that will create aCompositeReactiveHealthContributor
from the specified map.static <V> CompositeReactiveHealthContributor
fromMap
(Map<String, V> map, Function<V, ? extends ReactiveHealthContributor> valueAdapter) Factory method that will create aCompositeReactiveHealthContributor
from the specified map.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods 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 aCompositeReactiveHealthContributor
from 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 aCompositeReactiveHealthContributor
from 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
-