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