接口 HealthEndpointGroup
public interface HealthEndpointGroup
A logical grouping of
health contributors that can be exposed
by the HealthEndpoint.- 从以下版本开始:
- 2.2.0
- 作者:
- Phillip Webb, Madhura Bhave
-
方法概要
修饰符和类型方法说明Return an additional path that can be used to map the health group to an alternative location.Returns theHttpCodeStatusMapperthat should be used for this group.Returns the status aggregator that should be used for this group.booleanReturnstrueif the given contributor is a member of this group.booleanshowComponents(SecurityContext securityContext) Returns ifhealth componentsshould be shown in the response.booleanshowDetails(SecurityContext securityContext) Returns ifhealth detailsshould be shown in the response.
-
方法详细资料
-
isMember
Returnstrueif the given contributor is a member of this group.- 参数:
name- the contributor name- 返回:
trueif the contributor is a member of this group
-
showComponents
Returns ifhealth componentsshould be shown in the response.- 参数:
securityContext- the endpoint security context- 返回:
trueto shown details orfalseto hide them
-
showDetails
Returns ifhealth detailsshould be shown in the response.- 参数:
securityContext- the endpoint security context- 返回:
trueto shown details orfalseto hide them
-
getStatusAggregator
StatusAggregator getStatusAggregator()Returns the status aggregator that should be used for this group.- 返回:
- the status aggregator for this group
-
getHttpCodeStatusMapper
HttpCodeStatusMapper getHttpCodeStatusMapper()Returns theHttpCodeStatusMapperthat should be used for this group.- 返回:
- the HTTP code status mapper
-
getAdditionalPath
AdditionalHealthEndpointPath getAdditionalPath()Return an additional path that can be used to map the health group to an alternative location.- 返回:
- the additional health path or
null - 从以下版本开始:
- 2.6.0
-