/** * Sets the maximum number of connections allowed. * * @param maxTotalConnections The maximum number of connections allowed. * * @see #MAX_TOTAL_CONNECTIONS */ public void setMaxTotalConnections(int maxTotalConnections) { setIntParameter( HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS, maxTotalConnections); }
/** * Sets the maximum number of connections allowed. * * @param maxTotalConnections The maximum number of connections allowed. * * @see #MAX_TOTAL_CONNECTIONS */ public void setMaxTotalConnections(int maxTotalConnections) { setIntParameter( HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS, maxTotalConnections); }
/** * Sets the maximum number of connections allowed. * * @param maxTotalConnections The maximum number of connections allowed. * * @see #MAX_TOTAL_CONNECTIONS */ public void setMaxTotalConnections(int maxTotalConnections) { setIntParameter( HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS, maxTotalConnections); }
/** * Sets the maximum number of connections allowed. * * @param maxTotalConnections The maximum number of connections allowed. * * @see #MAX_TOTAL_CONNECTIONS */ public void setMaxTotalConnections(int maxTotalConnections) { setIntParameter( HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS, maxTotalConnections); }
/** * Sets the maximum number of connections allowed. * * @param maxTotalConnections The maximum number of connections allowed. * * @see #MAX_TOTAL_CONNECTIONS */ public void setMaxTotalConnections(int maxTotalConnections) { setIntParameter( HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS, maxTotalConnections); }
/** * Return the maximum number of connections allowed for the client */ public AbderaClient setMaxConnectionsTotal(int max) { client.getHttpConnectionManager().getParams() .setIntParameter(HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS, max); return this; }
/** * Sets the timeout until a connection is etablished. A value of zero means the timeout is not used. The default * value is zero. */ public AbderaClient setConnectionTimeout(int timeout) { client.getHttpConnectionManager().getParams().setIntParameter(HttpConnectionParams.CONNECTION_TIMEOUT, timeout); return this; }