844845846847848849850851852853854
WriteLock writeLock = readWriteLock.writeLock(); writeLock.lock(); try { pool.clear(); } finally { writeLock.unlock(); } } /** * {@inheritDoc}
860861862863864865866867868869870
try { pool.close(); } catch (Exception e) { // swallowed as of Pool 2 } finally { writeLock.unlock(); } } /** * {@inheritDoc}
929930931932933934935936937938939
WriteLock writeLock = readWriteLock.writeLock(); writeLock.lock(); try { return keyedPool.borrowObject(key); } finally { writeLock.unlock(); } } /** * {@inheritDoc}
945946947948949950951952953954955
try { keyedPool.returnObject(key, obj); } catch (Exception e) { // swallowed } finally { writeLock.unlock(); } } /** * {@inheritDoc}
961962963964965966967968969970971
try { keyedPool.invalidateObject(key, obj); } catch (Exception e) { // swallowed as of Pool 2 } finally { writeLock.unlock(); } } /** * {@inheritDoc}
976977978979980981982983984985986
WriteLock writeLock = readWriteLock.writeLock(); writeLock.lock(); try { keyedPool.addObject(key); } finally { writeLock.unlock(); } } /** * {@inheritDoc}
10461047104810491050105110521053105410551056
WriteLock writeLock = readWriteLock.writeLock(); writeLock.lock(); try { keyedPool.clear(); } finally { writeLock.unlock(); } } /** * {@inheritDoc}
10611062106310641065106610671068106910701071
WriteLock writeLock = readWriteLock.writeLock(); writeLock.lock(); try { keyedPool.clear(key); } finally { writeLock.unlock(); } } /** * {@inheritDoc}
10771078107910801081108210831084108510861087
try { keyedPool.close(); } catch (Exception e) { // swallowed as of Pool 2 } finally { writeLock.unlock(); } } /** * {@inheritDoc}
8081828384858687888990
} // Downgrade the lock try { readLock.lock(); writeLock.unlock(); if (closed) { throw new IOException(sm.getString("apr.closed")); } return doWriteInternal(b, off, len); } finally {