@Override public void close() { try { getConnection().close(); } catch (final IOException ignore) { } }
@Override public void close() { try { getConnection().close(); } catch (final IOException ignore) { } }
@Override public boolean isClosed() { return !getConnection().isOpen(); }
@Override public boolean isClosed() { return !getConnection().isOpen(); }
@Override protected void onLease(final BasicNIOPoolEntry entry) { final NHttpClientConnection conn = entry.getConnection(); conn.setSocketTimeout(entry.getSocketTimeout()); }
@Override protected void onLease(final BasicNIOPoolEntry entry) { final NHttpClientConnection conn = entry.getConnection(); conn.setSocketTimeout(entry.getSocketTimeout()); }
@Override protected void onRelease(final BasicNIOPoolEntry entry) { final NHttpClientConnection conn = entry.getConnection(); entry.setSocketTimeout(conn.getSocketTimeout()); conn.setSocketTimeout(0); }
@Override protected void onRelease(final BasicNIOPoolEntry entry) { final NHttpClientConnection conn = entry.getConnection(); entry.setSocketTimeout(conn.getSocketTimeout()); conn.setSocketTimeout(0); }