@Singleton @Requires(classes=HealthIndicator.class) @Requires(beans=ConsulClient.class) @Requires(property="consul.client.health-check",value="true",defaultValue="true") public class ConsulHealthIndicator extends java.lang.Object implements HealthIndicator
HealthIndicator for Consul.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
ConsulHealthIndicator(ConsulClient client) |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<HealthResult> |
getResult() |
public ConsulHealthIndicator(ConsulClient client)
client - The Consul clientpublic org.reactivestreams.Publisher<HealthResult> getResult()
getResult in interface HealthIndicatorHealthResult that provides the
information necessary to build a response.