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(HealthStatusManager manager) voidupdate(BiConsumer<String, HealthCheckResponse.ServingStatus> updater)
-
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
-
update
-