@Override protected BasicNIOPoolEntry createEntry(final HttpHost host, final NHttpClientConnection conn) { final BasicNIOPoolEntry entry = new BasicNIOPoolEntry( Long.toString(COUNTER.getAndIncrement()), host, conn); entry.setSocketTimeout(conn.getSocketTimeout()); return entry; }
@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 public void close() { try { getConnection().close(); } catch (final IOException ignore) { } }
@Override protected void onRelease(final BasicNIOPoolEntry entry) { final NHttpClientConnection conn = entry.getConnection(); entry.setSocketTimeout(conn.getSocketTimeout()); conn.setSocketTimeout(0); }
@Override public void close() { try { getConnection().close(); } catch (final IOException ignore) { } }
@Override protected void onLease(final BasicNIOPoolEntry entry) { final NHttpClientConnection conn = entry.getConnection(); conn.setSocketTimeout(entry.getSocketTimeout()); }
@Override protected BasicNIOPoolEntry createEntry(final HttpHost host, final NHttpClientConnection conn) { final BasicNIOPoolEntry entry = new BasicNIOPoolEntry( Long.toString(COUNTER.getAndIncrement()), host, conn); entry.setSocketTimeout(conn.getSocketTimeout()); return entry; }
@Override public boolean isClosed() { return !getConnection().isOpen(); }
@Override public boolean isClosed() { return !getConnection().isOpen(); }