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 HealthCheck
Obtain aHealthCheck
that always returns a status of down.static HealthCheck
Obtain aHealthCheck
that always returns a status of up.
-
Method Details
-
call
- Specified by:
call
in interfaceHealthCheck
-
up
Obtain aHealthCheck
that always returns a status of up.- Parameters:
name
- the service name that the health check is for- Returns:
- a
HealthCheck
that always returns a status of up
-
down
Obtain aHealthCheck
that always returns a status of down.- Parameters:
name
- the service name that the health check is for- Returns:
- a
HealthCheck
that always returns a status of down
-