@Singleton
@Requires(property="grpc.server.health.enabled",value="true",defaultValue="true") @Requires(beans=io.micronaut.management.endpoint.health.HealthEndpoint.class)
public class GrpcServerHealthIndicator
extends java.lang.Object
implements io.micronaut.management.health.indicator.HealthIndicator
HealthIndicator
for Grpc server.Constructor and Description |
---|
GrpcServerHealthIndicator(GrpcEmbeddedServer server)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<io.micronaut.management.health.indicator.HealthResult> |
getResult() |
public GrpcServerHealthIndicator(GrpcEmbeddedServer server)
server
- The grpc embedded server