improved DruidDataSource for profile

This commit is contained in:
高铁
2016-02-02 16:04:42 +08:00
parent cdeec1f73c
commit 1dfe8112a7
8 changed files with 142 additions and 22 deletions
@@ -1182,4 +1182,16 @@ public class DruidPooledConnection extends PoolableWrapper implements javax.sql.
public void abandond() {
this.abandoned = true;
}
public long getPhysicalConnectNanoSpan() {
return this.holder.getCreateNanoSpan();
}
public long getPhysicalConnectionUsedCount() {
return this.holder.getUseCount();
}
public long getConnectNotEmptyWaitNanos() {
return this.holder.getLastNotEmptyWaitNanos();
}
}