Package com.linecorp.armeria.server.grpc
Class GrpcHealthCheckServiceBuilder
java.lang.Object
com.linecorp.armeria.server.grpc.GrpcHealthCheckServiceBuilder
Builds a
GrpcHealthCheckService
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a newly createdGrpcHealthCheckService
built from the properties specified so far.checkers
(ListenableHealthChecker... serverHealthCheckers) Adds the specifiedListenableHealthChecker
s that determine the healthiness of theServer
.checkers
(Iterable<? extends ListenableHealthChecker> serverHealthCheckers) Adds the specifiedListenableHealthChecker
s that determine the healthiness of theServer
.serviceCheckers
(String serviceName, ListenableHealthChecker healthChecker) Adds the pair of the service name and theListenableHealthChecker
that determine the healthiness of the specified gRPC service.updateListener
(HealthCheckUpdateListener updateListener) Adds aHealthCheckUpdateListener
which is invoked when the healthiness of theServer
is updated.
-
Method Details
-
checkers
Adds the specifiedListenableHealthChecker
s that determine the healthiness of theServer
. -
checkers
public GrpcHealthCheckServiceBuilder checkers(Iterable<? extends ListenableHealthChecker> serverHealthCheckers) Adds the specifiedListenableHealthChecker
s that determine the healthiness of theServer
. -
serviceCheckers
public GrpcHealthCheckServiceBuilder serviceCheckers(String serviceName, ListenableHealthChecker healthChecker) Adds the pair of the service name and theListenableHealthChecker
that determine the healthiness of the specified gRPC service. The specified health checker is not used for determining the healthiness of theServer
.Note: The suggested format of service name is `package_names.ServiceName`. For example, If the proto package that defines `HelloService` belongs to `com.example`, the service name is `com.example.HelloService`
-
updateListener
Adds aHealthCheckUpdateListener
which is invoked when the healthiness of theServer
is updated. -
build
Returns a newly createdGrpcHealthCheckService
built from the properties specified so far.
-