code: public void setLimits(int maxConPerRoute, int maxConTotal) {
          this.maxConnPerRoute = maxConPerRoute;
          this.maxConnTotal = maxConTotal;
          if ( asyncHttpClient != null ) {
              try {
                  asyncHttpClient.close();
              } catch (IOException e) {
                  e.printStackTrace();
              }
              asyncHttpClient = null;
          }
      }
docs: overwrite static limits, WARNING: careful when accessing the singleton
  
  @param maxConPerRoute
  @param maxConTotal