@Singleton @Requires(beans=HealthEndpoint.class) @Requires(property="endpoints.health.jdbc.enabled",notEquals="false") 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,
HealthAggregator healthAggregator) |
@Inject public JdbcIndicator(@Named(value="io") ExecutorService executorService, DataSource[] dataSources, HealthAggregator healthAggregator)
executorService
- The executor servicedataSources
- The data sourceshealthAggregator
- The health aggregatorpublic Publisher<HealthResult> getResult()
getResult
in interface HealthIndicator
HealthResult
that provides the
information necessary to build a response.