Class GrpcClientHealthAutoConfiguration
java.lang.Object
net.devh.boot.grpc.client.autoconfigure.GrpcClientHealthAutoConfiguration
@Configuration(proxyBeanMethods=false)
@AutoConfigureAfter(GrpcClientAutoConfiguration.class)
@ConditionalOnEnabledHealthIndicator("grpcChannel")
@ConditionalOnClass(name="org.springframework.boot.actuate.health.HealthIndicator")
public class GrpcClientHealthAutoConfiguration
extends Object
Auto configuration class for Spring-Boot. This allows zero config client health status updates for gRPC services.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a HealthIndicator based on the channels'ConnectivityState
s from the underlyingGrpcChannelFactory
.
-
Constructor Details
-
GrpcClientHealthAutoConfiguration
public GrpcClientHealthAutoConfiguration()
-
-
Method Details
-
grpcChannelHealthIndicator
Creates a HealthIndicator based on the channels'ConnectivityState
s from the underlyingGrpcChannelFactory
.- Parameters:
factory
- The factory to derive the connectivity states from.- Returns:
- A health indicator bean, that uses the following assumption
DOWN == states.contains(TRANSIENT_FAILURE)
.
-