Class GrpcServerHealth

java.lang.Object
org.springframework.boot.grpc.server.health.GrpcServerHealth

public class GrpcServerHealth extends Object
Provides health information for a gRPC server that can be used to update a HealthStatusManager.
Since:
4.1.0
  • Constructor Details

    • GrpcServerHealth

      public GrpcServerHealth(org.springframework.boot.health.registry.HealthContributorRegistry registry, @Nullable org.springframework.boot.health.registry.ReactiveHealthContributorRegistry fallbackRegistry, HealthCheckedGrpcComponents components)
      Create a new GrpcServerHealth instance.
      Parameters:
      registry - the health contributor registry
      fallbackRegistry - the fallback registry or null
      components - the components used to provide the server health
  • Method Details

    • update

      public void update(io.grpc.protobuf.services.HealthStatusManager manager)
    • update

      public void update(BiConsumer<String, io.grpc.health.v1.HealthCheckResponse.ServingStatus> updater)