@Override public boolean isUsed() { return instance.isUsed(); }
/** {@inheritDoc} */ @Override @JmxManaged(descrition="Current used connections in the pool") public int getUsedSize() { int cnt = 0; synchronized (pool) { for (DbConnection con : new LinkedList<DbConnection>(pool)) { if( con.isUsed()) cnt++; } } return cnt; }