Commit 3be9dbb0 by qiuweili123

增加默认数据源属性

parent 34e5b97a
...@@ -10,11 +10,11 @@ import java.util.concurrent.TimeUnit; ...@@ -10,11 +10,11 @@ import java.util.concurrent.TimeUnit;
public class MatrixDruidDataSourceProperties extends MatrixDataSourceProperties { public class MatrixDruidDataSourceProperties extends MatrixDataSourceProperties {
public static final String PREFIX = MatrixDataSourceProperties.PREFIX + ".druid"; public static final String PREFIX = MatrixDataSourceProperties.PREFIX + ".druid";
private Integer initialSize; private Integer initialSize=20;
private Long timeBetweenEvictionRunsMillis = DruidAbstractDataSource.DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS; private Long timeBetweenEvictionRunsMillis = DruidAbstractDataSource.DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS;
private Long timeBetweenLogStatsMillis; private Long timeBetweenLogStatsMillis;
private Integer minIdle; private Integer minIdle=5;
private Integer maxIdle; private Integer maxIdle=20;
private Long maxWait = TimeUnit.SECONDS.toMillis(3L); private Long maxWait = TimeUnit.SECONDS.toMillis(3L);
private Integer statSqlMaxSize; private Integer statSqlMaxSize;
private Long minEvictableIdleTimeMillis; private Long minEvictableIdleTimeMillis;
...@@ -33,7 +33,7 @@ public class MatrixDruidDataSourceProperties extends MatrixDataSourceProperties ...@@ -33,7 +33,7 @@ public class MatrixDruidDataSourceProperties extends MatrixDataSourceProperties
private Integer maxWaitThreadCount; private Integer maxWaitThreadCount;
private Boolean failFast; private Boolean failFast;
private Long phyTimeoutMillis; private Long phyTimeoutMillis;
private Boolean keepAlive; private Boolean keepAlive=true;
private Boolean poolPreparedStatements; private Boolean poolPreparedStatements;
private Boolean initVariants; private Boolean initVariants;
private Boolean initGlobalVariants; private Boolean initGlobalVariants;
...@@ -43,8 +43,9 @@ public class MatrixDruidDataSourceProperties extends MatrixDataSourceProperties ...@@ -43,8 +43,9 @@ public class MatrixDruidDataSourceProperties extends MatrixDataSourceProperties
private Integer maxPoolPreparedStatementPerConnectionSize; private Integer maxPoolPreparedStatementPerConnectionSize;
private String initConnectionSqls; private String initConnectionSqls;
private Boolean sharePreparedStatements = false; private Boolean sharePreparedStatements = false;
private Integer connectionErrorRetryAttempts = 1; private Integer connectionErrorRetryAttempts = 3;
private Boolean breakAfterAcquireFailure; private Boolean breakAfterAcquireFailure;
private Long timeBetweenConnectErrorMillis = 30000L;
private Boolean removeAbandoned; private Boolean removeAbandoned;
private Integer removeAbandonedTimeoutMillis; private Integer removeAbandonedTimeoutMillis;
private Boolean logAbandoned; private Boolean logAbandoned;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment