Java 类io.dropwizard.db.TimeBoundHealthCheck 实例源码

项目:oacc-example-securetodo    文件:DataSourceHealthCheck.java   
public DataSourceHealthCheck(ExecutorService executorService,
                             Duration duration,
                             DataSource dataSource,
                             String validationQuery) {
   this.dataSource = dataSource;
   this.validationQuery = validationQuery;
   timeBoundHealthCheck = new TimeBoundHealthCheck(executorService, duration);
}
项目:CredentialStorageService-dw-hibernate    文件:SessionFactoryHealthCheck.java   
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);
}
项目:dropwizard-entitymanager    文件:EntityManagerFactoryHealthCheck.java   
EntityManagerFactoryHealthCheck(ExecutorService executorService,
                                       Duration duration,
                                       EntityManagerFactory entityManagerFactory,
                                       String validationQuery) {
    this.entityManagerFactory = entityManagerFactory;
    this.validationQuery = validationQuery;
    this.timeBoundHealthCheck = new TimeBoundHealthCheck(executorService, duration);
}
项目:dropwizard-jdbi3    文件:JdbiHealthCheck.java   
public JdbiHealthCheck(ExecutorService executorService, Duration duration, Jdbi dbi, String validationQuery) {
    this.jdbi = dbi;
    this.validationQuery = validationQuery;
    this.timeBoundHealthCheck = new TimeBoundHealthCheck(executorService, duration);
}