This commit is contained in:
wenshao
2011-12-21 13:19:23 +08:00
parent bdba952244
commit 63ae20662e
7 changed files with 116 additions and 22 deletions
@@ -806,6 +806,15 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
lock.unlock();
}
}
public boolean isBusy() {
lock.lock();
try {
return this.inited && this.activeCount == maxActive && this.poolingCount == 0;
} finally {
lock.unlock();
}
}
public long getRemoveAbandonedCount() {
return removeAbandonedCount;