接口 CompositeHealthContributor
- 所有超级接口:
HealthContributor
,Iterable<NamedContributor<HealthContributor>>
,NamedContributors<HealthContributor>
public interface CompositeHealthContributor
extends HealthContributor, NamedContributors<HealthContributor>
A
HealthContributor
that is composed of other HealthContributor
instances.- 从以下版本开始:
- 2.2.0
- 作者:
- Phillip Webb
- 另请参阅:
-
方法概要
静态方法修饰符和类型方法说明static CompositeHealthContributor
fromMap
(Map<String, ? extends HealthContributor> map) Factory method that will create aCompositeHealthContributor
from the specified map.static <V> CompositeHealthContributor
fromMap
(Map<String, V> map, Function<V, ? extends HealthContributor> valueAdapter) Factory method that will create aCompositeHealthContributor
from the specified map.从接口继承的方法 java.lang.Iterable
forEach, iterator, spliterator
从接口继承的方法 org.springframework.boot.actuate.health.NamedContributors
getContributor, stream
-
方法详细资料
-
fromMap
Factory method that will create aCompositeHealthContributor
from the specified map.- 参数:
map
- the source map- 返回:
- a composite health contributor instance
-
fromMap
static <V> CompositeHealthContributor fromMap(Map<String, V> map, Function<V, ? extends HealthContributor> valueAdapter) Factory method that will create aCompositeHealthContributor
from the specified map.- 类型参数:
V
- the value type- 参数:
map
- the source mapvalueAdapter
- function used to adapt the map value- 返回:
- a composite health contributor instance
-