mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
DruidDataSource add property phyMaxUseCount & shrinkQuietly.
This commit is contained in:
@@ -145,6 +145,7 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
|
||||
protected volatile long minEvictableIdleTimeMillis = DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS;
|
||||
protected volatile long maxEvictableIdleTimeMillis = DEFAULT_MAX_EVICTABLE_IDLE_TIME_MILLIS;
|
||||
protected volatile long phyTimeoutMillis = DEFAULT_PHY_TIMEOUT_MILLIS;
|
||||
protected volatile long phyMaxUseCount = -1;
|
||||
|
||||
protected volatile boolean removeAbandoned;
|
||||
protected volatile long removeAbandonedTimeoutMillis = 300 * 1000;
|
||||
@@ -779,6 +780,14 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
|
||||
this.phyTimeoutMillis = phyTimeoutMillis;
|
||||
}
|
||||
|
||||
public long getPhyMaxUseCount() {
|
||||
return phyMaxUseCount;
|
||||
}
|
||||
|
||||
public void setPhyMaxUseCount(long phyMaxUseCount) {
|
||||
this.phyMaxUseCount = phyMaxUseCount;
|
||||
}
|
||||
|
||||
public int getNumTestsPerEvictionRun() {
|
||||
return numTestsPerEvictionRun;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user