Interface HealthEndpointGroups
public interface HealthEndpointGroups
A collection of
groups
for use with a health endpoint.- Since:
- 2.2.0
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptionReturn the group with the specified name ornull
if the name is not known.default HealthEndpointGroup
Return the group with the specified additional path ornull
if no group with that path is found.default Set<HealthEndpointGroup>
getAllWithAdditionalPath
(WebServerNamespace namespace) Return all the groups with an additional path on the specifiedWebServerNamespace
.getNames()
Return the names of any additional groups.Return the primary group used by the endpoint.static HealthEndpointGroups
of
(HealthEndpointGroup primary, Map<String, HealthEndpointGroup> additional) Factory method to create aHealthEndpointGroups
instance.
-
Method Details
-
getPrimary
HealthEndpointGroup getPrimary()Return the primary group used by the endpoint.- Returns:
- the primary group (never
null
)
-
getNames
Return the names of any additional groups.- Returns:
- the additional group names
-
get
Return the group with the specified name ornull
if the name is not known.- Parameters:
name
- the name of the group- Returns:
- the
HealthEndpointGroup
ornull
-
get
Return the group with the specified additional path ornull
if no group with that path is found.- Parameters:
path
- the additional path- Returns:
- the matching
HealthEndpointGroup
ornull
- Since:
- 2.6.0
-
getAllWithAdditionalPath
Return all the groups with an additional path on the specifiedWebServerNamespace
.- Parameters:
namespace
- theWebServerNamespace
- Returns:
- the matching groups
- Since:
- 2.6.0
-
of
static HealthEndpointGroups of(HealthEndpointGroup primary, Map<String, HealthEndpointGroup> additional) Factory method to create aHealthEndpointGroups
instance.- Parameters:
primary
- the primary groupadditional
- the additional groups- Returns:
- a new
HealthEndpointGroups
instance
-