The HealthCheckResponse class is reserved for an extension by implementation providers. An application should
use one of the static methods to create a Response instance using a HealthCheckResponseBuilder. When used on
the consuming end, The class can also be instantiated directly.
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final Optional | |
| private static final Logger | |
| private final String | |
| private static volatile HealthCheckResponseProvider | |
| private final HealthCheckResponse. |
| Access | Constructor and Description |
|---|---|
| public | HealthCheckResponse(String
Health Check procedure's name name, HealthCheckResponse.Health Check procedure's status status,additional data for Health Check procedure data)Constructor allowing instantiation from 3rd party framework like MicroProfile Rest client |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static HealthCheckResponseBuilder | Returns: a new, empty health check builderCreates an empty Note The health check response name is required and needs to be set before the response is constructed. |
| public static HealthCheckResponse | |
| private static <T> T | |
| private static <T> T | |
| private static ClassLoader | |
| public Optional | |
| public String | |
| private static HealthCheckResponseProvider | |
| public HealthCheckResponse. | |
| public static HealthCheckResponseBuilder | Returns: a new health check builder with a namethe check name name)Creates a |
| public static void | setResponseProvider(HealthCheckResponseProvider
the provider instance to use. provider)Used by OSGi environment where the service loader pattern is not supported. |
| public static HealthCheckResponse |
| data | back to summary |
|---|---|
| private final Optional<Map<String, Object>> data | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| name | back to summary |
|---|---|
| private final String name | |
| provider | back to summary |
|---|---|
| private static volatile HealthCheckResponseProvider provider | |
| status | back to summary |
|---|---|
| private final HealthCheckResponse. | |
| HealthCheckResponse | back to summary |
|---|---|
| public HealthCheckResponse(String name, HealthCheckResponse. Constructor allowing instantiation from 3rd party framework like MicroProfile Rest client | |
| HealthCheckResponse | back to summary |
|---|---|
| public HealthCheckResponse() Default constructor | |
| builder | back to summary |
|---|---|
| public static HealthCheckResponseBuilder builder() Creates an empty Note The health check response name is required and needs to be set before the response is constructed.
| |
| down | back to summary |
|---|---|
| public static HealthCheckResponse down(String name) Creates a failed health check with a name.
| |
| find | back to summary |
|---|---|
| private static <T> T find(Class<T> service) | |
| find | back to summary |
|---|---|
| private static <T> T find(Class<T> service, ClassLoader cl) | |
| getContextClassLoader | back to summary |
|---|---|
| private static ClassLoader getContextClassLoader() | |
| getData | back to summary |
|---|---|
| public Optional | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getProvider | back to summary |
|---|---|
| private static HealthCheckResponseProvider getProvider() | |
| getStatus | back to summary |
|---|---|
| public HealthCheckResponse. | |
| named | back to summary |
|---|---|
| public static HealthCheckResponseBuilder named(String name) Creates a
| |
| setResponseProvider | back to summary |
|---|---|
| public static void setResponseProvider(HealthCheckResponseProvider provider) Used by OSGi environment where the service loader pattern is not supported.
| |
| up | back to summary |
|---|---|
| public static HealthCheckResponse up(String name) Creates a successful health check with a name.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final HealthCheckResponse. | |
| public static final HealthCheckResponse. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static HealthCheckResponse. | |
| public static HealthCheckResponse. |
| DOWN | back to summary |
|---|---|
| public static final HealthCheckResponse. | |
| UP | back to summary |
|---|---|
| public static final HealthCheckResponse. | |
| Status | back to summary |
|---|---|
| private Status() | |
| valueOf | back to summary |
|---|---|
| public static HealthCheckResponse. | |
| values | back to summary |
|---|---|
| public static HealthCheckResponse. | |