mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add notFullTimeoutRetryCount support
This commit is contained in:
@@ -118,6 +118,7 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
|
||||
protected volatile int minIdle = DEFAULT_MIN_IDLE;
|
||||
protected volatile int maxIdle = DEFAULT_MAX_IDLE;
|
||||
protected volatile long maxWait = DEFAULT_MAX_WAIT;
|
||||
protected int notFullTimeoutRetryCount = 0;
|
||||
|
||||
protected volatile String validationQuery = DEFAULT_VALIDATION_QUERY;
|
||||
protected volatile int validationQueryTimeout = -1;
|
||||
@@ -892,6 +893,15 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
|
||||
|
||||
this.maxWait = maxWaitMillis;
|
||||
}
|
||||
|
||||
public int getNotFullTimeoutRetryCount() {
|
||||
return notFullTimeoutRetryCount;
|
||||
}
|
||||
|
||||
|
||||
public void setNotFullTimeoutRetryCount(int notFullTimeoutRetryCount) {
|
||||
this.notFullTimeoutRetryCount = notFullTimeoutRetryCount;
|
||||
}
|
||||
|
||||
public int getMinIdle() {
|
||||
return minIdle;
|
||||
|
||||
Reference in New Issue
Block a user