/** * Creates a new {@code ConnectionPool} instance. * @param name pool name * @param minPool minimum number of pooled connections, or 0 for none * @param maxPool maximum number of pooled connections, or 0 for none * @param maxSize maximum number of possible connections, or 0 for no limit * @param idleTimeout idle timeout (seconds) for idle pooled connections, or 0 for no timeout * @param url JDBC connection URL * @param username database username * @param password password for the database username supplied */ public ConnectionPool(String name, int minPool, int maxPool, int maxSize, long idleTimeout, String url, String username, String password) { super(name, minPool, maxPool, maxSize, idleTimeout); this.url = url; this.user = username; this.pass = password; this.props = null; setCaching(true); addObjectPoolListener(new EventRelay<>()); }