Не сильно и захламляет.
public ConnectionPool(String url, TypeDriver type) throws SQLException {
HikariConfig hc = new HikariConfig();
hc.setDriverClassName(Tools.getDriver(type));
hc.setConnectionTestQuery("SELECT 1");
hc.setMaximumPoolSize(20);
hc.setJdbcUrl(url);
dataSource = new HikariDataSource(hc);
try (Connection connection = dataSource.getConnection();
Statement statement = connection.createStatement();
ResultSet resultSet = statement.executeQuery("insert ...")) {
} catch (Exception e) {
log.error(e);
}
}