mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
添加执行次数监控
This commit is contained in:
@@ -199,6 +199,16 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
|
||||
|
||||
protected Exception createError = null;
|
||||
|
||||
private final AtomicLong executeCount = new AtomicLong();
|
||||
|
||||
public long getExecuteCount() {
|
||||
return executeCount.get();
|
||||
}
|
||||
|
||||
public void incrementExecuteCount() {
|
||||
this.executeCount.incrementAndGet();
|
||||
}
|
||||
|
||||
public Exception getCreateError() {
|
||||
return createError;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user