HikariCP Data Source Provider
The org.mybatis.guice.datasource.hikaricp.HikariCPProvider
is the provider that builds the com.zaxxer.hikari.HikariDataSource
and helps users to configure it.
The table below contains all of the available properties for the Provider:; for more details please consult the Official reference.
Property | Required | Bind to Java Type |
---|---|---|
JDBC.username | true | java.lang.String |
JDBC.password | true | java.lang.String |
JDBC.loginTimeout | false | int |
hikaricp.allowPoolSuspension | false | boolean |
hikaricp.autoCommit | false | boolean |
hikaricp.catalog | false | java.lang.String |
hikaricp.connectionInitSql | false | java.lang.String |
hikaricp.connectionTestQuery | false | java.lang.String |
hikaricp.connectionTimeoutMs | false | long |
hikaricp.driverClassName | false | java.lang.String |
hikaricp.healthCheckProperties | false | java.util.Properties |
hikaricp.healthCheckRegistry | false | com.codahale.metrics.health.HealthCheckRegistry |
hikaricp.idleTimeoutMs | false | long |
hikaricp.initializationFailTimeout | false | long |
hikaricp.isolateInternalQueries | false | boolean |
hikaricp.leakDetectionThresholdMs | false | long |
hikaricp.loginTimeout | false | int |
hikaricp.maxLifetimeMs | false | long |
hikaricp.maxPoolSize | false | int |
hikaricp.metricRegistry | false | com.codahale.metrics.MetricRegistry or io.micrometer.core.instrument.MeterRegistry |
hikaricp.metricsTrackerFactory | false | com.zaxxer.hikari.metrics.MetricsTrackerFactory |
hikaricp.minimumIdle | false | int |
hikaricp.poolName | false | java.lang.String |
hikaricp.readOnly | false | boolean |
hikaricp.registerMbeans | false | boolean |
hikaricp.scheduledExecutorService | false | java.util.concurrent.ScheduledExecutorService |
hikaricp.schema | false | java.lang.String |
hikaricp.threadFactory | false | java.util.concurrent.ThreadFactory |
hikaricp.transactionIsolation | false | java.lang.String |
hikaricp.validationTimeoutMs | false | long |