mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
DruidDataSource add keepAlive support.
This commit is contained in:
@@ -117,6 +117,9 @@ public class DruidDataSourceStatValue {
|
||||
@MField(aggregate = AggregateType.Sum)
|
||||
protected long startTransactionCount;
|
||||
|
||||
@MField(aggregate = AggregateType.Sum)
|
||||
protected long keepAliveCheckCount;
|
||||
|
||||
// protected long[] transactionHistogram;
|
||||
protected long[] connectionHoldTimeHistogram;
|
||||
|
||||
@@ -563,4 +566,11 @@ public class DruidDataSourceStatValue {
|
||||
this.poolingPeakTime = poolingPeakTime;
|
||||
}
|
||||
|
||||
public long getKeepAliveCheckCount() {
|
||||
return keepAliveCheckCount;
|
||||
}
|
||||
|
||||
public void setKeepAliveCheckCount(long keepAliveCheckCount) {
|
||||
this.keepAliveCheckCount = keepAliveCheckCount;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user