类 DefaultHealthContributorRegistry
java.lang.Object
org.springframework.boot.actuate.health.DefaultHealthContributorRegistry
- 所有已实现的接口:
Iterable<NamedContributor<HealthContributor>>
,ContributorRegistry<HealthContributor>
,HealthContributorRegistry
,NamedContributors<HealthContributor>
Default
HealthContributorRegistry
implementation.- 从以下版本开始:
- 2.2.0
- 作者:
- Phillip Webb
-
构造器概要
构造器构造器说明DefaultHealthContributorRegistry
(Map<String, HealthContributor> contributors) DefaultHealthContributorRegistry
(Map<String, HealthContributor> contributors, Function<String, String> nameFactory) -
方法概要
修饰符和类型方法说明getContributor
(String name) Return the contributor with the given name.iterator()
void
registerContributor
(String name, HealthContributor contributor) Register a contributor with the givenname
.unregisterContributor
(String name) Unregister a previously registered contributor.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.boot.actuate.health.ContributorRegistry
registerContributor, unregisterContributor
从接口继承的方法 java.lang.Iterable
forEach, iterator, spliterator
从接口继承的方法 org.springframework.boot.actuate.health.NamedContributors
getContributor, stream
-
构造器详细资料
-
DefaultHealthContributorRegistry
public DefaultHealthContributorRegistry() -
DefaultHealthContributorRegistry
-
DefaultHealthContributorRegistry
-
-
方法详细资料
-
registerContributor
从接口复制的说明:ContributorRegistry
Register a contributor with the givenname
.- 指定者:
registerContributor
在接口中ContributorRegistry<C>
- 参数:
name
- the name of the contributorcontributor
- the contributor to register
-
unregisterContributor
从接口复制的说明:ContributorRegistry
Unregister a previously registered contributor.- 指定者:
unregisterContributor
在接口中ContributorRegistry<C>
- 参数:
name
- the name of the contributor to unregister- 返回:
- the unregistered indicator, or
null
if no indicator was found in the registry for the givenname
.
-
getContributor
从接口复制的说明:NamedContributors
Return the contributor with the given name.- 指定者:
getContributor
在接口中NamedContributors<C>
- 参数:
name
- the name of the contributor- 返回:
- a contributor instance or
null
-
iterator
-