public static final class HealthSupport.Builder extends Object implements Builder<HealthSupport>
HealthSupport.| Modifier and Type | Method and Description |
|---|---|
HealthSupport.Builder |
add(Collection<HealthCheck> healthChecks)
Add health checks to the list.
|
HealthSupport.Builder |
add(HealthCheck... healthChecks)
Add a health check (or healthchecks) to the list.
|
HealthSupport.Builder |
addExcluded(Collection<String> names)
Add health checks to a black list.
|
HealthSupport.Builder |
addExcluded(String healthCheckName)
Add a health check to a black list.
|
HealthSupport.Builder |
addIncluded(Collection<String> names)
Add health checks to a white list (in case
HealthSupport.includeAll is set to false. |
HealthSupport.Builder |
addIncluded(String healthCheckName)
Add a health check to a white list (in case
HealthSupport.includeAll is set to false. |
HealthSupport |
build()
Build the instance from this builder.
|
HealthSupport.Builder |
config(Config config)
Update this builder from configuration.
|
HealthSupport.Builder |
webContext(String path)
Path under which to register health check endpoint on the web server.
|
public HealthSupport build()
Builderbuild in interface Builder<HealthSupport>public HealthSupport.Builder webContext(String path)
path - webContext to use, defaults topublic HealthSupport.Builder add(HealthCheck... healthChecks)
healthChecks - health check(s) to addpublic HealthSupport.Builder add(Collection<HealthCheck> healthChecks)
healthChecks - health checks to addpublic HealthSupport.Builder addIncluded(String healthCheckName)
HealthSupport.includeAll is set to false.healthCheckName - name of a health check to includepublic HealthSupport.Builder addIncluded(Collection<String> names)
HealthSupport.includeAll is set to false.names - names of health checks to includepublic HealthSupport.Builder addExcluded(String healthCheckName)
healthCheckName - name of a health check to excludepublic HealthSupport.Builder addExcluded(Collection<String> names)
names - names of health checks to excludepublic HealthSupport.Builder config(Config config)
config - node located on this component's configurationCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.