コード例 #1
0
 public void shutdown() {
   live = false;
   for (ObjectPool<ConnectionWrapper> pool : poolMap.values()) {
     pool.destroy();
   }
   poolMap.clear();
 }
コード例 #2
0
 public void removeConnectionPool(Address address) {
   ObjectPool<ConnectionWrapper> pool = poolMap.remove(address);
   if (pool != null) {
     pool.destroy();
   }
 }