cn.mybatis.mp.routing.datasource.dataSourceConfig.HikariConfig Maven / Gradle / Ivy
package cn.mybatis.mp.routing.datasource.dataSourceConfig;
import javax.sql.DataSource;
import java.util.Properties;
public class HikariConfig {
private String catalog;
private long connectionTimeout;
private long validationTimeout;
private long idleTimeout;
private long leakDetectionThreshold;
private long maxLifetime;
private int maximumPoolSize;
private int minimumIdle;
private String username;
private String password;
private long initializationFailTimeout;
private String connectionInitSql;
private String connectionTestQuery;
private String dataSourceClassName;
private String dataSourceJndiName;
private String driverClassName;
private String exceptionOverrideClassName;
private String jdbcUrl;
private String poolName;
private String schema;
private String transactionIsolationName;
private boolean isAutoCommit;
private boolean isReadOnly;
private boolean isIsolateInternalQueries;
private boolean isRegisterMbeans;
private boolean isAllowPoolSuspension;
private DataSource dataSource;
private Properties dataSourceProperties;
private Object metricRegistry;
private Object healthCheckRegistry;
private Properties healthCheckProperties;
private long keepaliveTime;
private boolean sealed;
public String getCatalog() {
return catalog;
}
public void setCatalog(String catalog) {
this.catalog = catalog;
}
public long getConnectionTimeout() {
return connectionTimeout;
}
public void setConnectionTimeout(long connectionTimeout) {
this.connectionTimeout = connectionTimeout;
}
public long getValidationTimeout() {
return validationTimeout;
}
public void setValidationTimeout(long validationTimeout) {
this.validationTimeout = validationTimeout;
}
public long getIdleTimeout() {
return idleTimeout;
}
public void setIdleTimeout(long idleTimeout) {
this.idleTimeout = idleTimeout;
}
public long getLeakDetectionThreshold() {
return leakDetectionThreshold;
}
public void setLeakDetectionThreshold(long leakDetectionThreshold) {
this.leakDetectionThreshold = leakDetectionThreshold;
}
public long getMaxLifetime() {
return maxLifetime;
}
public void setMaxLifetime(long maxLifetime) {
this.maxLifetime = maxLifetime;
}
public int getMaximumPoolSize() {
return maximumPoolSize;
}
public void setMaximumPoolSize(int maximumPoolSize) {
this.maximumPoolSize = maximumPoolSize;
}
public int getMinimumIdle() {
return minimumIdle;
}
public void setMinimumIdle(int minimumIdle) {
this.minimumIdle = minimumIdle;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public long getInitializationFailTimeout() {
return initializationFailTimeout;
}
public void setInitializationFailTimeout(long initializationFailTimeout) {
this.initializationFailTimeout = initializationFailTimeout;
}
public String getConnectionInitSql() {
return connectionInitSql;
}
public void setConnectionInitSql(String connectionInitSql) {
this.connectionInitSql = connectionInitSql;
}
public String getConnectionTestQuery() {
return connectionTestQuery;
}
public void setConnectionTestQuery(String connectionTestQuery) {
this.connectionTestQuery = connectionTestQuery;
}
public String getDataSourceClassName() {
return dataSourceClassName;
}
public void setDataSourceClassName(String dataSourceClassName) {
this.dataSourceClassName = dataSourceClassName;
}
public String getDataSourceJndiName() {
return dataSourceJndiName;
}
public void setDataSourceJndiName(String dataSourceJndiName) {
this.dataSourceJndiName = dataSourceJndiName;
}
public String getDriverClassName() {
return driverClassName;
}
public void setDriverClassName(String driverClassName) {
this.driverClassName = driverClassName;
}
public String getExceptionOverrideClassName() {
return exceptionOverrideClassName;
}
public void setExceptionOverrideClassName(String exceptionOverrideClassName) {
this.exceptionOverrideClassName = exceptionOverrideClassName;
}
public String getJdbcUrl() {
return jdbcUrl;
}
public void setJdbcUrl(String jdbcUrl) {
this.jdbcUrl = jdbcUrl;
}
public String getPoolName() {
return poolName;
}
public void setPoolName(String poolName) {
this.poolName = poolName;
}
public String getSchema() {
return schema;
}
public void setSchema(String schema) {
this.schema = schema;
}
public String getTransactionIsolationName() {
return transactionIsolationName;
}
public void setTransactionIsolationName(String transactionIsolationName) {
this.transactionIsolationName = transactionIsolationName;
}
public boolean isAutoCommit() {
return isAutoCommit;
}
public void setAutoCommit(boolean autoCommit) {
isAutoCommit = autoCommit;
}
public boolean isReadOnly() {
return isReadOnly;
}
public void setReadOnly(boolean readOnly) {
isReadOnly = readOnly;
}
public boolean isIsolateInternalQueries() {
return isIsolateInternalQueries;
}
public void setIsolateInternalQueries(boolean isolateInternalQueries) {
isIsolateInternalQueries = isolateInternalQueries;
}
public boolean isRegisterMbeans() {
return isRegisterMbeans;
}
public void setRegisterMbeans(boolean registerMbeans) {
isRegisterMbeans = registerMbeans;
}
public boolean isAllowPoolSuspension() {
return isAllowPoolSuspension;
}
public void setAllowPoolSuspension(boolean allowPoolSuspension) {
isAllowPoolSuspension = allowPoolSuspension;
}
public DataSource getDataSource() {
return dataSource;
}
public void setDataSource(DataSource dataSource) {
this.dataSource = dataSource;
}
public Properties getDataSourceProperties() {
return dataSourceProperties;
}
public void setDataSourceProperties(Properties dataSourceProperties) {
this.dataSourceProperties = dataSourceProperties;
}
public Object getMetricRegistry() {
return metricRegistry;
}
public void setMetricRegistry(Object metricRegistry) {
this.metricRegistry = metricRegistry;
}
public Object getHealthCheckRegistry() {
return healthCheckRegistry;
}
public void setHealthCheckRegistry(Object healthCheckRegistry) {
this.healthCheckRegistry = healthCheckRegistry;
}
public Properties getHealthCheckProperties() {
return healthCheckProperties;
}
public void setHealthCheckProperties(Properties healthCheckProperties) {
this.healthCheckProperties = healthCheckProperties;
}
public long getKeepaliveTime() {
return keepaliveTime;
}
public void setKeepaliveTime(long keepaliveTime) {
this.keepaliveTime = keepaliveTime;
}
public boolean isSealed() {
return sealed;
}
public void setSealed(boolean sealed) {
this.sealed = sealed;
}
}