@Override public void releaseAndDiscard() { final PoolEntry<HttpHost, IOSession> poolEntry = poolEntryRef.getAndSet(null); if (poolEntry != null) { poolEntry.discardConnection(CloseMode.IMMEDIATE); connPool.release(poolEntry, false); } }
@Override public void releaseAndDiscard() { final PoolEntry<HttpHost, IOSession> poolEntry = poolEntryRef.getAndSet(null); if (poolEntry != null) { poolEntry.discardConnection(CloseMode.IMMEDIATE); connPool.release(poolEntry, false); } }
void discardConnection() { final PoolEntry<HttpHost, HttpClientConnection> poolEntry = poolEntryRef.getAndSet(null); if (poolEntry != null) { poolEntry.discardConnection(CloseMode.IMMEDIATE); connPool.release(poolEntry, false); } }
void discardConnection() { final PoolEntry<HttpHost, HttpClientConnection> poolEntry = poolEntryRef.getAndSet(null); if (poolEntry != null) { poolEntry.discardConnection(CloseMode.IMMEDIATE); connPool.release(poolEntry, false); } }
void releaseConnection() { final PoolEntry<HttpHost, HttpClientConnection> poolEntry = poolEntryRef.getAndSet(null); if (poolEntry != null) { final HttpClientConnection connection = poolEntry.getConnection(); connPool.release(poolEntry, connection != null && connection.isOpen()); } }
void releaseConnection() { final PoolEntry<HttpHost, HttpClientConnection> poolEntry = poolEntryRef.getAndSet(null); if (poolEntry != null) { final HttpClientConnection connection = poolEntry.getConnection(); connPool.release(poolEntry, connection != null && connection.isOpen()); } }
@Override public void releaseAndReuse() { final PoolEntry<HttpHost, IOSession> poolEntry = poolEntryRef.getAndSet(null); if (poolEntry != null) { final IOSession ioSession = poolEntry.getConnection(); connPool.release(poolEntry, ioSession != null && !ioSession.isClosed()); } }
@Override public void releaseAndReuse() { final PoolEntry<HttpHost, IOSession> poolEntry = poolEntryRef.getAndSet(null); if (poolEntry != null) { final IOSession ioSession = poolEntry.getConnection(); connPool.release(poolEntry, ioSession != null && !ioSession.isClosed()); } }
throw ex; } finally { pool.release(entry, reusable); if (log.isDebugEnabled()) { log.debug("Connection released: " + ConnPoolSupport.formatStats(
throw ex; } finally { this.pool.release(entry, reusable); if (this.log.isDebugEnabled()) { this.log.debug("Connection released: " + ConnPoolSupport.formatStats(