mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved DruidDataSource for profile
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user