java.lang.Object
io.helidon.grpc.server.ConstantHealthCheck
- All Implemented Interfaces:
HealthCheck
A simple
HealthCheck implementation
that always returns the same response.-
Method Summary
Modifier and TypeMethodDescriptioncall()static HealthCheckObtain aHealthCheckthat always returns a status of down.static HealthCheckObtain aHealthCheckthat always returns a status of up.
-
Method Details
-
call
- Specified by:
callin interfaceHealthCheck
-
up
Obtain aHealthCheckthat always returns a status of up.- Parameters:
name- the service name that the health check is for- Returns:
- a
HealthCheckthat always returns a status of up
-
down
Obtain aHealthCheckthat always returns a status of down.- Parameters:
name- the service name that the health check is for- Returns:
- a
HealthCheckthat always returns a status of down
-