public synchronized Collection getObsoleteHandles(Collection handles) {
if (handles != null) {
// Update the usage count for handles belonging to statements
// that are being closed.
for (Iterator iterator = handles.iterator(); iterator.hasNext();) {
ProcEntry handle = (ProcEntry) iterator.next();
handle.release();
}
}
// Scavenge some existing entries
scavengeCache();