public void shutdown() { live = false; for (ObjectPool<ConnectionWrapper> pool : poolMap.values()) { pool.destroy(); } poolMap.clear(); }
public void removeConnectionPool(Address address) { ObjectPool<ConnectionWrapper> pool = poolMap.remove(address); if (pool != null) { pool.destroy(); } }