Class GrpcServerHealth
java.lang.Object
org.springframework.boot.grpc.server.health.GrpcServerHealth
Provides health information for a gRPC server that can be used to update a
HealthStatusManager.- Since:
- 4.1.0
- Author:
- Phillip Webb
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcServerHealth(HealthContributorRegistry registry, @Nullable ReactiveHealthContributorRegistry fallbackRegistry, HealthCheckedGrpcComponents components) Create a newGrpcServerHealthinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidupdate(io.grpc.protobuf.services.HealthStatusManager manager) voidupdate(BiConsumer<String, io.grpc.health.v1.HealthCheckResponse.ServingStatus> updator)
-
Constructor Details
-
GrpcServerHealth
public GrpcServerHealth(HealthContributorRegistry registry, @Nullable ReactiveHealthContributorRegistry fallbackRegistry, HealthCheckedGrpcComponents components) Create a newGrpcServerHealthinstance.- Parameters:
registry- the health contributor registryfallbackRegistry- the fallback registry ornullcomponents- the components used to provide the server health
-
-
Method Details
-
update
public void update(io.grpc.protobuf.services.HealthStatusManager manager) -
update
-