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