- java.lang.Object
-
- io.helidon.grpc.server.ConstantHealthCheck
-
- All Implemented Interfaces:
HealthCheck
public class ConstantHealthCheck extends Object implements HealthCheck
A simpleHealthCheck
implementation that always returns the same response.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HealthCheckResponse
call()
static HealthCheck
down(String name)
Obtain aHealthCheck
that always returns a status of down.static HealthCheck
up(String name)
Obtain aHealthCheck
that always returns a status of up.
-
-
-
Method Detail
-
call
public HealthCheckResponse call()
- Specified by:
call
in interfaceHealthCheck
-
up
public static HealthCheck up(String name)
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
public static HealthCheck down(String name)
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
-
-