Class JdbcIndicator

java.lang.Object
io.micronaut.management.health.indicator.jdbc.JdbcIndicator
All Implemented Interfaces:
Ordered, HealthIndicator

@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 Object implements HealthIndicator

A HealthIndicator used to display information about the jdbc status.

Since:
1.0
Author:
James Kleeh
  • Constructor Details

    • JdbcIndicator

      public JdbcIndicator(@Named("blocking") ExecutorService executorService, DataSource[] dataSources, @Nullable @Nullable io.micronaut.jdbc.DataSourceResolver dataSourceResolver, HealthAggregator<?> healthAggregator)
      Parameters:
      executorService - The executor service
      dataSources - The data sources
      dataSourceResolver - The data source resolver
      healthAggregator - The health aggregator
  • Method Details