Class GrpcServerHealthIndicator

  • All Implemented Interfaces:
    io.micronaut.core.order.Ordered, io.micronaut.management.health.indicator.HealthIndicator

    @Singleton
    @Requires(property="grpc.server.health.enabled",value="true",defaultValue="true") @Requires(beans=io.micronaut.management.endpoint.health.HealthEndpoint.class) @Requires(beans=io.micronaut.runtime.server.EmbeddedServer.class)
    public class GrpcServerHealthIndicator
    extends java.lang.Object
    implements io.micronaut.management.health.indicator.HealthIndicator
    A HealthIndicator for Grpc server.
    Since:
    2.1.0
    • Field Summary

      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Summary

      Constructors 
      Constructor Description
      GrpcServerHealthIndicator​(io.micronaut.runtime.server.EmbeddedServer server)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.reactivestreams.Publisher<io.micronaut.management.health.indicator.HealthResult> getResult()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.micronaut.core.order.Ordered

        getOrder
    • Constructor Detail

      • GrpcServerHealthIndicator

        public GrpcServerHealthIndicator​(@Named("grpc.server")
                                         io.micronaut.runtime.server.EmbeddedServer server)
        Default constructor.
        Parameters:
        server - The grpc embedded server
    • Method Detail

      • getResult

        public org.reactivestreams.Publisher<io.micronaut.management.health.indicator.HealthResult> getResult()
        Specified by:
        getResult in interface io.micronaut.management.health.indicator.HealthIndicator