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