@FunctionalInterface
public interface HikariPoolConfigurator
| Modifier and Type | Method and Description |
|---|---|
com.zaxxer.hikari.HikariConfig |
configurePool(HostSpec hostSpec,
java.util.Properties originalProps)
A function that should be passed to the
HikariPooledConnectionProvider constructor to
specify any extra configuration options for an internal Hikari connection pool to the given
HostSpec. |
com.zaxxer.hikari.HikariConfig configurePool(HostSpec hostSpec, java.util.Properties originalProps)
HikariPooledConnectionProvider constructor to
specify any extra configuration options for an internal Hikari connection pool to the given
HostSpec. By default, the HikariPooledConnectionProvider will set the jdbcUrl,
exceptionOverrideClassName, username, and password of the HikariConfig returned by this
method. If no extra configuration options are required, this method should simply return an
empty HikariConfig.hostSpec - the details of the host for the internal connection pooloriginalProps - the properties specified for the original connection through
DriverManager.getConnection(String, Properties)HikariConfig specifying any extra configuration options for an internal
Hikari connection pool maintained by a HikariPooledConnectionProvider