mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
DruidDataSource add initVariable & initGlobalVariable support.
This commit is contained in:
@@ -1192,23 +1192,37 @@ public class DruidPooledConnection extends PoolableWrapper implements javax.sql.
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 1.1.17
|
||||
* @since 1.0.17
|
||||
*/
|
||||
public long getPhysicalConnectNanoSpan() {
|
||||
return this.holder.getCreateNanoSpan();
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 1.1.17
|
||||
* @since 1.0.17
|
||||
*/
|
||||
public long getPhysicalConnectionUsedCount() {
|
||||
return this.holder.getUseCount();
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 1.1.17
|
||||
* @since 1.0.17
|
||||
*/
|
||||
public long getConnectNotEmptyWaitNanos() {
|
||||
return this.holder.getLastNotEmptyWaitNanos();
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 1.0.28
|
||||
*/
|
||||
public Map<String, Object> getVariables() {
|
||||
return this.holder.variables;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 1.0.28
|
||||
*/
|
||||
public Map<String, Object> getGloablVariables() {
|
||||
return this.holder.globleVariables;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user