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 ornullif the name is not known.default HealthEndpointGroupReturn the group with the specified additional path ornullif 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 HealthEndpointGroupsof(HealthEndpointGroup primary, Map<String, HealthEndpointGroup> additional) Factory method to create aHealthEndpointGroupsinstance.
-
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 ornullif the name is not known.- Parameters:
name- the name of the group- Returns:
- the
HealthEndpointGroupornull
-
get
Return the group with the specified additional path ornullif no group with that path is found.- Parameters:
path- the additional path- Returns:
- the matching
HealthEndpointGroupornull - 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 aHealthEndpointGroupsinstance.- Parameters:
primary- the primary groupadditional- the additional groups- Returns:
- a new
HealthEndpointGroupsinstance
-