public DataSourceHealthCheck(ExecutorService executorService, Duration duration, DataSource dataSource, String validationQuery) { this.dataSource = dataSource; this.validationQuery = validationQuery; timeBoundHealthCheck = new TimeBoundHealthCheck(executorService, duration); }
public SessionFactoryHealthCheck(final ExecutorService executorService, final Duration duration, final SessionFactory sessionFactory, final String validationQuery) { this.sessionFactory = sessionFactory; this.validationQuery = validationQuery; this.timeBoundHealthCheck = new TimeBoundHealthCheck(executorService, duration); }
EntityManagerFactoryHealthCheck(ExecutorService executorService, Duration duration, EntityManagerFactory entityManagerFactory, String validationQuery) { this.entityManagerFactory = entityManagerFactory; this.validationQuery = validationQuery; this.timeBoundHealthCheck = new TimeBoundHealthCheck(executorService, duration); }
public JdbiHealthCheck(ExecutorService executorService, Duration duration, Jdbi dbi, String validationQuery) { this.jdbi = dbi; this.validationQuery = validationQuery; this.timeBoundHealthCheck = new TimeBoundHealthCheck(executorService, duration); }