Example #1
0
 public static int getGlobalThreadCount() {
   return connmgr.getParams().getMaxTotalConnections();
 }
Example #2
0
 public static void setGlobalConnectionTimeout(int timeout) {
   connmgr.getParams().setConnectionTimeout(timeout);
 }
Example #3
0
 public static void setGlobalThreadCount(int nthreads) {
   connmgr.getParams().setMaxTotalConnections(nthreads);
   connmgr.getParams().setDefaultMaxConnectionsPerHost(nthreads);
 }