Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save juarezjuniorgithub/96bfea3c693f615158f7bb5cac58d2dc to your computer and use it in GitHub Desktop.

Select an option

Save juarezjuniorgithub/96bfea3c693f615158f7bb5cac58d2dc to your computer and use it in GitHub Desktop.
HikariCP properties that have exact UCP equivalences
HikariCP UCP Comments
dataSourceClassName ConnectionFactoryClassName (1) ConnectionFactoryClassName also covers java.sql.DriverManager cases.(2) HikariCP doesn't support XA.
jdbcUrl URL
username User
password Password
connectionTimeout (ms) ConnectionWaitTimeout UCP 23.2 supports ms and pre-23.2 supports sec. HikariCP lowest acceptable value 250ms.
idleTimeout InactiveConnectionTimeout HikariCP won't drop below minimumIdle.
maxLifeTime MaxConnectionReuseTime
connectionTestQuery SQLForValidateConnection
maximumPoolSize MaxPoolSize
poolName ConnectionPoolName
driverClassName ConnectionFactoryClassName Not recommended. See dataSourceClassName.
validationTimeout ConnectionValidationTimeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment