public class HealthStatus extends Object
| Constructor and Description |
|---|
HealthStatus() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.microprofile.health.HealthCheck |
down(String name)
Creates a health check with state down.
|
static org.eclipse.microprofile.health.HealthCheck |
state(boolean state)
Creates a health check with given state and default health check name (health-check).
|
static org.eclipse.microprofile.health.HealthCheck |
state(BooleanSupplier supplier)
Creates a health check with state set from supplier and default health check name (health-check).
|
static org.eclipse.microprofile.health.HealthCheck |
state(String name,
boolean state)
Creates a health check with given state and health check name.
|
static org.eclipse.microprofile.health.HealthCheck |
state(String name,
BooleanSupplier supplier)
Creates a health check with given state and health check name.
|
static org.eclipse.microprofile.health.HealthCheck |
up(String name)
Creates a health check with state up.
|
public static org.eclipse.microprofile.health.HealthCheck up(String name)
name - of the health checkpublic static org.eclipse.microprofile.health.HealthCheck down(String name)
name - of the health checkpublic static org.eclipse.microprofile.health.HealthCheck state(BooleanSupplier supplier)
supplier - to get state.public static org.eclipse.microprofile.health.HealthCheck state(boolean state)
state - public static org.eclipse.microprofile.health.HealthCheck state(String name, BooleanSupplier supplier)
name - of the state.supplier - to get state.public static org.eclipse.microprofile.health.HealthCheck state(String name, boolean state)
name - of the state.state - Copyright © 2018–2019. All rights reserved.