/** * Clears the specified pool, removing all pooled instances corresponding to the given <code>key</code>. * * @param key the key to clear */ @Override public synchronized void clear(K key) { Stack<V> stack = _pools.remove(key); destroyStack(key,stack); }
/** * Clears the pool, removing all pooled instances. */ @Override public synchronized void clear() { Iterator<K> it = _pools.keySet().iterator(); while(it.hasNext()) { K key = it.next(); Stack<V> stack = _pools.get(key); destroyStack(key,stack); } _totIdle = 0; _pools.clear(); _activeCount.clear(); }
/** * Clears the specified pool, removing all pooled instances corresponding to the given <code>key</code>. * * @param key the key to clear */ public synchronized void clear(Object key) { Stack stack = (Stack)(_pools.remove(key)); destroyStack(key,stack); }
/** * Clears the specified pool, removing all pooled instances corresponding to the given <code>key</code>. * * @param key the key to clear */ @Override public synchronized void clear(K key) { Stack<V> stack = _pools.remove(key); destroyStack(key,stack); }
/** * Clears the specified pool, removing all pooled instances corresponding to the given <code>key</code>. * * @param key the key to clear */ public synchronized void clear(Object key) { Stack stack = (Stack)(_pools.remove(key)); destroyStack(key,stack); }
/** * Clears the specified pool, removing all pooled instances corresponding to the given <code>key</code>. * * @param key the key to clear */ @Override public synchronized void clear(K key) { Stack<V> stack = _pools.remove(key); destroyStack(key,stack); }
/** * Clears the pool, removing all pooled instances. */ public synchronized void clear() { Iterator it = _pools.keySet().iterator(); while(it.hasNext()) { Object key = it.next(); Stack stack = (Stack)(_pools.get(key)); destroyStack(key,stack); } _totIdle = 0; _pools.clear(); _activeCount.clear(); }
/** * Clears the pool, removing all pooled instances. */ public synchronized void clear() { Iterator it = _pools.keySet().iterator(); while(it.hasNext()) { Object key = it.next(); Stack stack = (Stack)(_pools.get(key)); destroyStack(key,stack); } _totIdle = 0; _pools.clear(); _activeCount.clear(); }
/** * Clears the pool, removing all pooled instances. */ @Override public synchronized void clear() { Iterator<K> it = _pools.keySet().iterator(); while(it.hasNext()) { K key = it.next(); Stack<V> stack = _pools.get(key); destroyStack(key,stack); } _totIdle = 0; _pools.clear(); _activeCount.clear(); }
/** * Clears the pool, removing all pooled instances. */ @Override public synchronized void clear() { Iterator<K> it = _pools.keySet().iterator(); while(it.hasNext()) { K key = it.next(); Stack<V> stack = _pools.get(key); destroyStack(key,stack); } _totIdle = 0; _pools.clear(); _activeCount.clear(); }