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