@Singleton @Requires(beans=HealthEndpoint.class) @Requires(property="endpoints.health.jdbc.enabled",notEquals="false") @Requires(classes=DataSourceResolver.class) public class JdbcIndicator extends Object implements HealthIndicator
A HealthIndicator used to display information about the jdbc
status.
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
JdbcIndicator(ExecutorService executorService,
DataSource[] dataSources,
DataSourceResolver dataSourceResolver,
HealthAggregator<?> healthAggregator) |
@Inject public JdbcIndicator(@Named(value="io") ExecutorService executorService, DataSource[] dataSources, @Nullable DataSourceResolver dataSourceResolver, HealthAggregator<?> healthAggregator)
executorService - The executor servicedataSources - The data sourcesdataSourceResolver - The data source resolverhealthAggregator - The health aggregatorpublic Publisher<HealthResult> getResult()
getResult in interface HealthIndicatorHealthResult that provides the
information necessary to build a response.