Interface HealthEndpointGroups
public interface HealthEndpointGroups
A collection of
groups for use with a health endpoint.- Since:
- 4.0.0
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescription@Nullable HealthEndpointGroupReturn the group with the specified name ornullif the name is not known.default @Nullable 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
-
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
-
getAllWithAdditionalPath
Return all the groups with an additional path on the specifiedWebServerNamespace.- Parameters:
namespace- theWebServerNamespace- Returns:
- the matching groups
-
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
-