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 status down.
|
static org.eclipse.microprofile.health.HealthCheck |
status(boolean status)
Creates a health check with given status and default health check name (health-check).
|
static org.eclipse.microprofile.health.HealthCheck |
status(BooleanSupplier supplier)
Creates a health check with status set from supplier and default health check name (health-check).
|
static org.eclipse.microprofile.health.HealthCheck |
status(String name,
boolean status)
Creates a health check with given status and health check name.
|
static org.eclipse.microprofile.health.HealthCheck |
status(String name,
BooleanSupplier supplier)
Creates a health check with given status and health check name.
|
static org.eclipse.microprofile.health.HealthCheck |
up(String name)
Creates a health check with status 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 status(BooleanSupplier supplier)
supplier - to get status.public static org.eclipse.microprofile.health.HealthCheck status(boolean status)
status - public static org.eclipse.microprofile.health.HealthCheck status(String name, BooleanSupplier supplier)
name - of the status.supplier - to get status.public static org.eclipse.microprofile.health.HealthCheck status(String name, boolean status)
name - of the status.status - Copyright © 2018–2022. All rights reserved.