Package io.micronaut.grpc.server.health
Class GrpcHealthFactory
java.lang.Object
io.micronaut.grpc.server.health.GrpcHealthFactory
- Since:
- 3.3.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.grpc.protobuf.services.HealthStatusManager
Creates aHealthStatusManager
bean if GRPC health is enabled.
-
Field Details
-
HEALTH_ENABLED
- See Also:
-
-
Constructor Details
-
GrpcHealthFactory
public GrpcHealthFactory()
-
-
Method Details
-
healthStatusManager
@Singleton @Requires(property="grpc.server.health.enabled",value="true",defaultValue="true") @Requires(classes=io.grpc.protobuf.services.HealthStatusManager.class) public io.grpc.protobuf.services.HealthStatusManager healthStatusManager()Creates aHealthStatusManager
bean if GRPC health is enabled.- Returns:
- The Singleton
HealthStatusManager
bean.
-