@Configuration(proxyBeanMethods=false) @AutoConfigureAfter(value=GrpcClientAutoConfiguration.class) @ConditionalOnEnabledHealthIndicator(value="grpcChannel") @ConditionalOnClass(name="org.springframework.boot.actuate.health.HealthIndicator") public class GrpcClientHealthAutoConfiguration extends Object
Constructor and Description |
---|
GrpcClientHealthAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
HealthIndicator |
grpcChannelHealthIndicator(GrpcChannelFactory factory)
Creates a HealthIndicator based on the channels'
ConnectivityState s from the underlying
GrpcChannelFactory . |
@Bean @Lazy public HealthIndicator grpcChannelHealthIndicator(GrpcChannelFactory factory)
ConnectivityState
s from the underlying
GrpcChannelFactory
.factory
- The factory to derive the connectivity states from.DOWN == states.contains(TRANSIENT_FAILURE)
.