@Override public DefaultHttpClient setMaxPoolSize(int maxConnections) { checkClosed(); checkConfigurable(); pool.setMaxPoolSize(maxConnections); return this; }
@Override public void close() { checkClosed(); pool.close(); for (ClientConnection conn : connectionMap.values()) { conn.close(); } actualCtx.removeCloseHook(closeHook); closed = true; }
void returnConnection(final ClientConnection conn) { pool.returnConnection(conn); }
void getConnection( Handler<ClientConnection> handler, Handler<Throwable> connectionExceptionHandler, DefaultContext context) { pool.getConnection(handler, connectionExceptionHandler, context); }
@Override public int getMaxPoolSize() { checkClosed(); return pool.getMaxPoolSize(); }