title: How to create new connections and retrieve them later in HikariCP
body: <p>Would anyone care to elaborate how the HikariCP handles connections in the pool? How do you put a new connection in the pool, and how can you call on it / retrieve it later?</p>
  
  <p>This is my current code:</p>
  
  <pre><code>    HikariConfig config = new HikariConfig();
      config.setMaximumPoolSize(100);
  
      config.setDataSourceClassName("com.mysql.jdbc.jdbc2.optional.MysqlDataSource");
      config.addDataSourceProperty("serverName", "localhost");
      config.addDataSourceProperty("port", "8889");
      config.addDataSourceProperty("databaseName", "XXX");
      config.addDataSourceProperty("user", "XXX");
      config.addDataSourceProperty("password", "XXX");
  
      System.out.print("qq");
  
      HikariDataSource ds = new HikariDataSource(config);
      ds.setConnectionTimeout(800);
  </code></pre>