All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zodiac.datasource.jdbc.beecp.BeeDataSourceWrapper Maven / Gradle / Ivy

The newest version!
package org.zodiac.datasource.jdbc.beecp;

import cn.beecp.BeeDataSource;
import cn.beecp.BeeDataSourceConfig;

public class BeeDataSourceWrapper extends BeeDataSource {

    public BeeDataSourceWrapper() {
        super();
        super.setInitialSize(15);
        super.setMaxActive(30);
        super.setMaxWait(30);
        super.setIdleTimeout(300_000);
        super.setIdleCheckTimeInterval(60_000);
        super.setConnectionTestSql("SELECT 1");
    }

    public BeeDataSourceWrapper(BeeDataSourceConfig config) {
        super(config);
    }

    public BeeDataSourceWrapper(String driver, String url, String user, String password) {
        super(driver, url, user, password);
    }

    @Override
    public void close() {
        super.close();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy