Package io.smallrye.health
Class HealthStatus
java.lang.Object
io.smallrye.health.HealthStatus
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.microprofile.health.HealthCheckCreates a health check with status down.static org.eclipse.microprofile.health.HealthCheckstatus(boolean status) Creates a health check with given status and default health check name (health-check).static org.eclipse.microprofile.health.HealthCheckCreates a health check with given status and health check name.static org.eclipse.microprofile.health.HealthCheckstatus(String name, BooleanSupplier supplier) Creates a health check with given status and health check name.static org.eclipse.microprofile.health.HealthCheckstatus(BooleanSupplier supplier) Creates a health check with status set from supplier and default health check name (health-check).static org.eclipse.microprofile.health.HealthCheckCreates a health check with status up.
-
Constructor Details
-
HealthStatus
public HealthStatus()
-
-
Method Details
-
up
Creates a health check with status up.- Parameters:
name- of the health check- Returns:
- Health check with status up and given name.
-
down
Creates a health check with status down.- Parameters:
name- of the health check- Returns:
- Health check with status down and given name.
-
status
Creates a health check with status set from supplier and default health check name (health-check).- Parameters:
supplier- to get status.- Returns:
- Health check with given status and default name.
-
status
public static org.eclipse.microprofile.health.HealthCheck status(boolean status) Creates a health check with given status and default health check name (health-check).- Parameters:
status-- Returns:
- Health check with given status and default name.
-
status
public static org.eclipse.microprofile.health.HealthCheck status(String name, BooleanSupplier supplier) Creates a health check with given status and health check name.- Parameters:
name- of the status.supplier- to get status.- Returns:
- Health check with given status and name.
-
status
Creates a health check with given status and health check name.- Parameters:
name- of the status.status-- Returns:
- Health check with given status and name.
-