@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'
ConnectivityStates from the underlying
GrpcChannelFactory. |
@Bean @Lazy public HealthIndicator grpcChannelHealthIndicator(GrpcChannelFactory factory)
ConnectivityStates from the underlying
GrpcChannelFactory.factory - The factory to derive the connectivity states from.DOWN == states.contains(TRANSIENT_FAILURE).