/** * Destroys all created pool in this manager. */ public void close(boolean keepAlive) { // destroying connection pools boolean foundClientPool = false; synchronized (poolLock) { for (Iterator<Map.Entry<String, Pool>> itr = pools.entrySet().iterator(); itr.hasNext();) { Map.Entry<String, Pool> entry = itr.next(); PoolImpl pool = (PoolImpl) entry.getValue(); pool.basicDestroy(keepAlive); foundClientPool = true; } pools = Collections.emptyMap(); itrForEmergencyClose = null; if (foundClientPool) { // Now that the client has all the pools destroyed free up the pooled comm buffers ServerConnection.emptyCommBufferPool(); } } }
basicDestroy(keepAlive);